import { C as ConfigOptions } from './config-BhrsbEdA.js'; export { D as DEFAULT_API_URL, R as ResolvedConfig, c as clearAuthentication, l as loadConfig, r as resolveConfigPath, s as saveAuthentication, a as saveContext } from './config-BhrsbEdA.js'; type JsonObject = Record; interface ToolAnnotations { readOnlyHint: boolean; destructiveHint: boolean; openWorldHint: boolean; } interface ToolDefinition { name: string; description: string; input_schema: JsonObject; annotations: ToolAnnotations; } interface AgentSummary { slug: string; name: string; tagline?: string | null; category?: string | null; emoji?: string | null; kind?: string | null; } interface Catalog { protocol_version: number; commit: string | null; context: string; agent: AgentSummary; instructions: string; tools: ToolDefinition[]; } interface PeerToolDefinition { name: string; description: string; input_schema: JsonObject; annotations?: Partial; } interface Q5MClientOptions { apiUrl: string; apiKey: string; groupId?: string; fetch?: typeof globalThis.fetch; timeoutMs?: number; } declare class Q5MError extends Error { readonly status: number; readonly code: string; readonly result?: Record; constructor(message: string, status: number, code?: string, result?: Record); } declare class Q5MClient { #private; readonly apiUrl: string; readonly groupId?: string; constructor(options: Q5MClientOptions); getCatalog(signal?: AbortSignal): Promise; callTool(name: string, arguments_?: JsonObject, signal?: AbortSignal): Promise; } interface SecretInput { isTTY?: boolean; setRawMode?: (mode: boolean) => void; setEncoding: (encoding: BufferEncoding) => void; resume: () => void; pause: () => void; on: (event: "data", listener: (chunk: string) => void) => void; off: (event: "data", listener: (chunk: string) => void) => void; [Symbol.asyncIterator]?: () => AsyncIterator; } interface SecretOutput { write: (text: string) => unknown; } interface WritableOutput extends SecretOutput { isTTY?: boolean; } interface CliIO { stdin: SecretInput; stdout: WritableOutput; stderr: WritableOutput; } interface RunCliOptions { io?: CliIO; config?: ConfigOptions; fetch?: typeof globalThis.fetch; openBrowser?: (url: string) => Promise; sleep?: (milliseconds: number) => Promise; now?: () => number; } declare function runCli(argv: string[], options?: RunCliOptions): Promise; export { type AgentSummary, type Catalog, type CliIO, ConfigOptions, type JsonObject, type PeerToolDefinition, Q5MClient, type Q5MClientOptions, Q5MError, type RunCliOptions, type ToolAnnotations, type ToolDefinition, runCli };