use super::*;
pub enum Completion {
InsertAtCursor { text: String },
ReplaceWholeLine { new_line: String, new_cursor: usize },
}
pub trait Completor: Send {
fn complete(
&mut self,
output: &Output,
input: &str,
cursor: usize,
consecutive_presses: NonZeroU32,
) -> Option<Completion>;
}