import * as react from 'react'; import { PropsWithChildren, DependencyList } from 'react'; import { ToolRegistry, WebMcpBridgeOptions } from './tools.js'; export { LlmsTxtAgentAccess, LlmsTxtLink, LlmsTxtOptions, LlmsTxtPublisher, LlmsTxtSection, ToolQualityIssue, ToolQualityIssueCode, auditToolQuality, createToolRegistry, generateLlmsTxt, invokeTool } from './tools.js'; import { C as CommandChoice, A as AgentRunOptions, a as AgentRunResult, b as AgentOptions } from './types-B_BFlPTQ.js'; export { c as AgentEngine, d as AgentExecutedCall, e as AgentResponse, f as AgentTool, g as AgentToolCall, h as AgentToolContext, i as AgentToolSchema, j as CommandExecutionContext, N as NeedleWasmEngineOptions } from './types-B_BFlPTQ.js'; import { T as Tool, a as ToolInvokeOptions, b as ToolInvocationResult, c as ToolPolicy, d as ToolInvocationListener } from './types-c3u6kU61.js'; export { J as JsonSchema, M as MaybePromise, e as ToolAnnotations, f as ToolContext, g as ToolInvocationError, h as ToolInvocationErrorCode, i as ToolInvocationEvent, j as ToolInvocationRequest, k as ToolPolicyRegistration, l as ToolRegistration, m as ToolRegistryOptions, n as ToolResolver, o as ToolSchema, p as ToolValidationIssue } from './types-c3u6kU61.js'; interface SuperCmdKProviderProps extends PropsWithChildren { /** Commands available everywhere beneath this provider. */ commands?: readonly CommandChoice[]; /** Tools available everywhere beneath this provider, independent of any Agent engine. */ tools?: readonly Tool[]; /** Optional shared registry for non-React consumers such as voice or automation adapters. */ toolRegistry?: ToolRegistry; /** Central authorization and confirmation policy for every tool invocation. */ toolPolicy?: ToolPolicy; /** Observe tool lifecycle events without receiving arguments or return values. */ onToolInvocation?: ToolInvocationListener; /** Configure WebMCP, or disable it with false. The outermost provider enables it by default. */ webMcp?: boolean | WebMcpBridgeOptions; /** Agent runtime configuration. */ agent?: AgentOptions; open?: boolean; defaultOpen?: boolean; onOpenChange?: (open: boolean) => void; /** @deprecated Configure the hotkey on CommandPalette instead. */ hotkey?: CommandHotkey; } type CommandHotkey = false | ((event: KeyboardEvent) => boolean); interface SuperCmdKController { open: boolean; setOpen: (open: boolean) => void; /** @deprecated Configure the hotkey on CommandPalette instead. */ hotkey: CommandHotkey | undefined; commands: readonly CommandChoice[]; tools: readonly Tool[]; invokeTool: (name: string, arguments_: unknown, options?: ToolInvokeOptions) => Promise>; agentEnabled: boolean; /** Lazily download and compile the Agent engine in its Worker without starting a session. */ preloadAgent: () => Promise; runAgent: (input: string, options?: AgentRunOptions) => Promise; } declare function SuperCmdKProvider({ children, commands, tools, toolRegistry: externalToolRegistry, toolPolicy, onToolInvocation, webMcp, agent, open: controlledOpen, defaultOpen, onOpenChange, hotkey, }: SuperCmdKProviderProps): react.JSX.Element; /** Register choices for the lifetime of the calling component (usually a page or route). */ declare function useCommandChoices(commands: readonly CommandChoice[], dependencies?: DependencyList): void; declare function useCommandChoice(command: CommandChoice, dependencies?: DependencyList): void; /** Register generic tools for the lifetime of the calling component. */ declare function useTools(tools: readonly Tool[], dependencies?: DependencyList): void; declare function useTool(tool: Tool, dependencies?: DependencyList): void; /** @deprecated Use `useTools`. */ declare const useAgentTools: typeof useTools; /** @deprecated Use `useTool`. */ declare const useAgentTool: typeof useTool; declare function useSuperCmdK(): SuperCmdKController; export { AgentOptions, AgentRunOptions, AgentRunResult, CommandChoice, type CommandHotkey, type SuperCmdKController, SuperCmdKProvider, type SuperCmdKProviderProps, Tool, ToolInvocationListener, ToolInvocationResult, ToolInvokeOptions, ToolPolicy, ToolRegistry, useAgentTool, useAgentTools, useCommandChoice, useCommandChoices, useSuperCmdK, useTool, useTools };