import type { AgentSnapshotPayload, CreationSnapshot, WorkspaceCreateResponse } from "@getpaseo/protocol/messages"; import type { CreateAgentRequestOptions, CreateWorkspaceRequestOptions } from "../daemon-client.js"; type Kind = CreationSnapshot["kind"]; export interface CreationResult { agent?: AgentSnapshotPayload | null; workspace?: WorkspaceCreateResponse["payload"]["workspace"]; creation?: CreationSnapshot; error: string | null; errorCode?: string; setupTerminalId?: string | null; setupSkippedReason?: string; requestId?: string; } interface Dependencies { supports: (feature: "creationLifecycle" | "agentRequestReceipts") => boolean; requestId: () => string; request: (kind: Kind, input: Record) => Promise; observe: (kind: Kind, key: string, next: (snapshot: CreationSnapshot | null) => void, error: (error: unknown) => void) => () => void; legacyAgent: (input: CreateAgentRequestOptions) => Promise; legacyWorkspace: (input: CreateWorkspaceRequestOptions) => Promise; } /** Client-owned observation and compatibility. UI callbacks never advance creation. */ export declare class CreationClient { private readonly deps; private readonly operations; constructor(deps: Dependencies); createAgent(input: CreateAgentRequestOptions): Promise; createWorkspace(input: CreateWorkspaceRequestOptions): Promise; private legacyAgent; private start; private submit; receive(snapshot: CreationSnapshot): void; reconnect(): void; close(): void; private finish; private fail; private notify; } export {}; //# sourceMappingURL=index.d.ts.map