type Command = any;
type Props = {
    commands: Command[];
    onInputChange: (value: string) => void;
    onSubmit: (value: string, isSubmittingSlashCommand?: boolean) => void;
    setCursorOffset: (offset: number) => void;
};
export declare function useCommandAutocomplete({ commands, onInputChange, onSubmit, setCursorOffset, }: Props): {
    suggestions: string[];
    selectedSuggestion: number;
    updateSuggestions: (value: string) => void;
    clearSuggestions: () => void;
};
export {};
