export type TextInputState = { previousValue: string; value: string; cursorOffset: number; }; export type TextInputAction = { type: 'move-cursor-left'; } | { type: 'move-cursor-right'; } | { type: 'insert'; text: string; } | { type: 'delete'; }; export declare function textInputReducer(state: TextInputState, action: TextInputAction): TextInputState; export declare function createInitialTextInputState(defaultValue?: string): TextInputState; export declare function findSuggestion(value: string, suggestions?: string[]): string | undefined; //# sourceMappingURL=text-input.d.ts.map