import { type DesktopCreationNative } from "./desktop-creation-native.js"; import type { DesktopCreationStore, DesktopCreationRecord, DesktopCreationRequest } from "./desktop-creation-store.js"; import type { DesktopSnapshot, DesktopThreadIdentity } from "./desktop-types.js"; import type { DesktopTaskService } from "./desktop-task-service.js"; export interface DesktopCreationServiceDependencies { store: DesktopCreationStore; connect(codexHome: string): Promise; defaultDirectory(operationId: string): string; open(threadId: string): Promise; observe(target: DesktopThreadIdentity): Promise; tasks: Pick; now?(): Date; sleep?(ms: number): Promise; ownerAttempts?: number; processId?: number; isProcessAlive?(pid: number): boolean; } export interface DesktopCreationRun { operationId: string; controllerSession: string; input?: DesktopCreationRequest; resume?: boolean; } /** Each invocation owns a durable claim, but no file lock spans native I/O. */ export declare function createDesktopCreationService(deps: DesktopCreationServiceDependencies): { run: (input: DesktopCreationRun) => Promise; };