Public declaration syntax from harness-tui-kit/src/components/chat/input.rs Original source SHA-256: 80eb172ad751c4cf03e0d1b56108b9eca8caf8cc1d9bb58f64f99b9b0ac031f8 Function bodies and constant values are omitted. This is not the complete implementation. Source line 36 #[derive(Debug, Clone)] pub struct InputBar<'a> { } Source line 59 #[must_use] pub fn new() -> Self; Source line 75 #[must_use] pub fn bg_color(mut self, color: ratatui::style::Color) -> Self; Source line 82 #[must_use] pub fn show_prompt(mut self, show: bool) -> Self; Source line 91 #[must_use] pub fn show_top_border(mut self, show: bool) -> Self; Source line 98 #[must_use] pub fn placeholder(mut self, text: &'a str) -> Self; Source line 105 #[must_use] pub fn disabled(mut self, disabled: bool) -> Self; Source line 112 #[must_use] pub fn show_char_count(mut self, show: bool) -> Self; Source line 119 #[must_use] pub fn theme(mut self, theme: &'a Theme) -> Self; Source line 133 #[derive(Debug, Clone, Default)] pub struct InputBarState { } Source line 147 #[must_use] pub fn text(&self) -> &str; Source line 154 pub fn take_text(&mut self) -> String; Source line 165 pub fn set_text(&mut self, text: impl Into); Source line 171 pub fn insert_char(&mut self, ch: char); Source line 181 pub fn delete_char_before(&mut self); Source line 195 pub fn move_cursor_left(&mut self); Source line 206 pub fn move_cursor_right(&mut self); Source line 217 pub fn history_prev(&mut self); Source line 233 pub fn history_next(&mut self); Source line 251 #[must_use] pub fn char_count(&self) -> usize; Source line 257 #[must_use] pub fn is_empty(&self) -> bool; Source line 262 pub fn clear(&mut self);