//#region src/web/lib/commands.d.ts type Frame = Record; export interface RpcImage { type: 'image'; data: string; mimeType: string; } export declare function promptCommand(message: string, images?: RpcImage[]): Frame; export declare function steerCommand(message: string, images?: RpcImage[]): Frame; export declare function followUpCommand(message: string, images?: RpcImage[]): Frame; export declare function enqueueAutomaticCommand(message: string, images?: RpcImage[]): Frame; export declare function removeQueuedCommand(id: string): Frame; export declare function promoteQueuedCommand(id: string, operationId?: string): Frame; export declare function resumeQueueCommand(): Frame; /** Requests in-place Pi session-tree navigation after the hub resolves the visible transcript id. */ export declare function rewindCommand(itemId: string): Frame; export declare function abortCommand(operationId?: string): Frame; export declare function clearQueueCommand(): Frame; export declare function getStateCommand(): Frame; export declare function getSessionStatsCommand(): Frame; export declare function getCommandsCommand(): Frame; export declare function compactCommand(customInstructions?: string): Frame; /** Drops the model's context without a summary. The transcript stays, with a notice where the memory restarts. */ export declare function clearCommand(): Frame; /** * Pi's built-in slash commands that the cockpit can actually run. * * `get_commands` reports extension commands, prompt templates and skills, and * nothing else, so the built-ins never reach the palette on their own. Nor can * they be sent as prompts: `session.prompt` has no branch for them, and the * TUI runs them by matching the raw typed text, so a prompt-shaped `/compact` * arrives at the model as literal text. Each entry here therefore needs its * own RPC frame, which is why the list holds only what is wired below rather * than everything the TUI offers. */ export declare const BUILTIN_COMMANDS: ReadonlyArray<{ readonly name: string; readonly description: string; }>; /** * The frame a typed built-in maps to, or undefined when the text is an * ordinary prompt. The argument is passed through, so `/compact keep the API * decisions` reaches Pi as its custom instruction. */ export declare function builtinCommandFrame(text: string): Frame | undefined; export declare function getAvailableModelsCommand(): Frame; export declare function getAvailableThinkingLevelsCommand(): Frame; export declare function setModelCommand(provider: string, modelId: string): Frame; export declare function setThinkingLevelCommand(level: string): Frame; export declare function setSessionNameCommand(name: string): Frame; export declare function dialogValue(id: string, value: string): Frame; export declare function dialogConfirmed(id: string, confirmed: boolean): Frame; export declare function dialogCancelled(id: string): Frame; //#endregion export {}; //# sourceMappingURL=commands.d.mts.map