import Prompt from './prompt'; import type { Key } from 'node:readline'; import type { PromptOptions } from './prompt'; declare interface OptionLike { value: unknown label?: string } declare interface AutocompleteOptions extends PromptOptions> { options: T[] | ((this: AutocompletePrompt) => T[]) filter?: FilterFunction multiple?: boolean } declare type FilterFunction = (_search: string, _opt: T) => boolean; export default class AutocompletePrompt extends Prompt { filteredOptions: T[]; multiple: boolean; isNavigating: boolean; selectedValues: Array; focusedValue: T['value'] | undefined; get cursor(): number; get userInputWithCursor(): string; get options(): T[]; constructor(opts: AutocompleteOptions); protected _isActionKey(char: string | undefined, key: Key): boolean; deselectAll(): void; toggleSelected(value: T['value']): void; }