import { StudioFigmaController } from "./figma-controller.js"; import type { StudioRuntimeInfo, StudioSession, StudioSessionMode, StudioHarnessId, StudioRunAction, StudioChatMode, StudioPermissionMode, StudioAttachment, StudioAutomationDefinition, StudioAutomationRun, StudioCodexConfig } from "./types.js"; interface StudioRuntimeServerOptions { projectRoot: string; port?: number; host?: string; figma?: StudioFigmaController; } export declare class StudioRuntimeServer { private readonly projectRoot; private readonly requestedPort; private readonly host; private server; private config; private sessions; private processes; private clients; private markdownCorpusAbort; private readonly sessionStore; private readonly figma; private readonly browser; private readonly computer; private readonly toolBroker; private readonly automations; private readonly downloads; private readonly eventJournal; private readonly toolCalls; private readonly providerEventSeq; private readonly startedAt; private readonly activeStreams; private eventBufferSize; private readonly maxInMemoryEvents; private harnessSnapshot; private readonly harnessSnapshotTtlMs; constructor(options: StudioRuntimeServerOptions); start(): Promise; stop(): Promise; getSession(id: string): StudioSession | null; startSession(input: { harness: StudioHarnessId; cwd: string; prompt: string; action?: StudioRunAction; mode?: StudioSessionMode; chatMode?: StudioChatMode; permissionMode?: StudioPermissionMode; attachments?: StudioAttachment[]; conversationId?: string; goal?: string; model?: string | null; effort?: string | null; codex?: Partial; }): Promise; cancelSession(sessionId: string): boolean; private handle; runDueAutomations(now?: string): Promise; runAutomation(id: string, loaded?: StudioAutomationDefinition): Promise; private waitForSessionCompletion; private handleWorkspace; private serveStudioAsset; private handleSessionEvents; private listSessionSummaries; private nextConversationTurnIndex; private listHarnessSnapshot; private compatibilitySnapshot; private emitComputerEvent; private readSessionRecord; private addEvent; private providerRuntimeEventFromStudioEvent; private nextProviderEventSeq; private emitToolCallEvents; private getConfig; private buildAgentContext; private buildResearchDesignAgentContext; private runtimeInfo; private metrics; private usageSnapshot; private setBaseHeaders; private sendJSON; } export declare function studioRuntimeUrl(info: StudioRuntimeInfo): URL; export declare function studioRuntimeFileUrl(path: string): string; export {};