import type { Api, Model, ImageContent } from '@earendil-works/pi-ai'; import type { ComputerModelBinding } from '@xopcai/computer-control-contract'; type AgentTurn = { runId: string; binding: ComputerModelBinding; visual: boolean; authorize?: (operation: string, args: unknown) => Promise; complete?: (operation: string, result: unknown) => Promise; cleanup?: () => Promise; }; /** Called by the actual embedded model request, never from tool arguments. */ export declare function bindComputerAgentTurn(owner: string, runId: string, model: Model): void; export declare function computerAgentTurn(owner: string): AgentTurn; export declare function setComputerProgramAuthorization(owner: string, authorize: AgentTurn['authorize'], complete?: AgentTurn['complete']): void; export declare function retainComputerFrame(owner: string, toolCallId: string, bytes: Uint8Array, mimeType: string): string; export declare function clearComputerFrames(owner: string): void; export declare function computerRequestFrameCleanup(owner: string, runId: string): () => void; /** Projects a copy for one provider request; persisted messages retain only text. */ export declare function computerImagesForRequest(owner: string, runId: string, toolCallId: string): ImageContent[]; export declare function endComputerAgentTurn(owner: string, runId: string): Promise; export {};