/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { type PartListUnion } from '@google/genai'; import { UseHistoryManagerReturn } from './useHistoryManager.js'; import { Config } from '@shenjianz/geminicli-balancer-core'; import { HistoryItemWithoutId, HistoryItem, SlashCommandProcessorResult } from '../types.js'; import { LoadedSettings } from '../../config/settings.js'; import { type CommandContext, type SlashCommand } from '../commands/types.js'; /** * Hook to define and process slash commands (e.g., /help, /clear). */ export declare const useSlashCommandProcessor: (config: Config | null, settings: LoadedSettings, addItem: UseHistoryManagerReturn["addItem"], clearItems: UseHistoryManagerReturn["clearItems"], loadHistory: UseHistoryManagerReturn["loadHistory"], refreshStatic: () => void, setShowHelp: React.Dispatch>, onDebugMessage: (message: string) => void, openThemeDialog: () => void, openAuthDialog: () => void, openEditorDialog: () => void, toggleCorgiMode: () => void, setQuittingMessages: (message: HistoryItem[]) => void, openPrivacyNotice: () => void) => { handleSlashCommand: (rawQuery: PartListUnion) => Promise; slashCommands: SlashCommand[]; pendingHistoryItems: HistoryItemWithoutId[]; commandContext: CommandContext; };