/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { Config } from '@aetherai/aether-core'; import type { CommandContext, SlashCommand } from '../commands/types.js'; import type { Suggestion } from '../components/SuggestionsDisplay.js'; import type { TextBuffer } from '../components/shared/text-buffer.js'; export declare enum CompletionMode { IDLE = "IDLE", AT = "AT", SLASH = "SLASH" } export interface UseCommandCompletionReturn { suggestions: Suggestion[]; activeSuggestionIndex: number; visibleStartIndex: number; showSuggestions: boolean; isLoadingSuggestions: boolean; isPerfectMatch: boolean; setActiveSuggestionIndex: React.Dispatch>; setShowSuggestions: React.Dispatch>; resetCompletionState: () => void; navigateUp: () => void; navigateDown: () => void; handleAutocomplete: (indexToUse: number) => void; } export declare function useCommandCompletion(buffer: TextBuffer, _dirs: readonly string[], cwd: string, slashCommands: readonly SlashCommand[], commandContext: CommandContext, reverseSearchActive?: boolean, config?: Config, active?: boolean): UseCommandCompletionReturn;