import { z } from "zod"; //#region src/devtools-protocol.d.ts declare const devToolsEvent = "coreframe:flutter-devtools"; declare const devToolsProtocolVersion = 2; declare const devToolsWebReadyType = "coreframeDevToolsWebReady"; declare const supportedFeatures: readonly ["state-launcher", "managed-dev"]; type DevToolsFeature = (typeof supportedFeatures)[number]; type StateLauncherCommand = Readonly<{ id: string; label?: string; description?: string; tags: readonly string[]; routes: readonly string[]; hasLaunchHandler: boolean; isActive: boolean; }>; type StateLauncherAuthAction = "signIn" | "signOut"; type StateLauncherAuth = Readonly<{ isSignedIn: boolean; }>; type StateLauncherRequest = Readonly<{ action: "launch"; id: string; requestId: string; }> | Readonly<{ action: "clear"; requestId: string; }> | Readonly<{ action: "auth"; authAction: StateLauncherAuthAction; requestId: string; }>; declare const managedDevActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"acknowledge-codex">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"cancel-codex">; }, z.core.$strict>, z.ZodObject<{ failureId: z.ZodString; type: z.ZodLiteral<"dismiss-check">; }, z.core.$strict>, z.ZodObject<{ codex: z.ZodOptional>; model: z.ZodOptional>; }, z.core.$strict>>; fingerprint: z.ZodOptional; message: z.ZodOptional; target: z.ZodString; type: z.ZodLiteral<"apply">; untracked: z.ZodOptional>>; }, z.core.$strict>, z.ZodObject<{ codex: z.ZodObject<{ effort: z.ZodOptional>; model: z.ZodOptional>; }, z.core.$strict>; type: z.ZodLiteral<"configure-codex">; }, z.core.$strict>, z.ZodObject<{ fingerprint: z.ZodString; message: z.ZodString; type: z.ZodLiteral<"commit">; untracked: z.ZodReadonly>; }, z.core.$strict>, z.ZodObject<{ fingerprint: z.ZodString; type: z.ZodLiteral<"message">; untracked: z.ZodReadonly>; }, z.core.$strict>, z.ZodObject<{ codex: z.ZodOptional>; model: z.ZodOptional>; }, z.core.$strict>>; target: z.ZodString; type: z.ZodLiteral<"prepare">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"decline-rebase">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"reject">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"reset-database">; }, z.core.$strict>, z.ZodObject<{ codex: z.ZodOptional>; model: z.ZodOptional>; }, z.core.$strict>>; type: z.ZodLiteral<"resolve-rebase">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"retry-codegen">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"retry-install">; }, z.core.$strict>], "type">; type ManagedDevAction = Readonly>; type ManagedDevMessage = Readonly<{ kind: "agent" | "thought" | "user"; text: string; }>; type ManagedDevCommit = Readonly<{ commit: string; shortCommit: string; subject: string; }>; type ManagedDevStatus = Readonly<{ busy?: string; checks?: Readonly<{ commit: string; commands: readonly Readonly<{ command: "pnpm test" | "pnpm typecheck"; dismissed?: boolean; failureId?: string; output?: string; status: "failed" | "passed" | "pending" | "running"; }>[]; trigger: "codegen-recovery" | "database-recovery" | "dependency-recovery" | "synchronization"; }>; codexCompletion?: Readonly<{ commits?: readonly ManagedDevCommit[]; finalMessage: string; id: string; messages: readonly ManagedDevMessage[]; totalCommits?: number; }>; currentCommit?: string; draft?: Readonly<{ fingerprint: string; tracked: boolean; untracked: readonly string[]; }>; message?: string; mode: "error" | "managed" | "unmanaged" | "waiting"; proposal?: string; setupFailure?: Readonly<{ command: "pnpm codegen" | "pnpm db migrate-local" | "pnpm db setup" | "pnpm install --frozen-lockfile"; commit: string; message: string; output: string; flutterRestartRequired?: boolean; restartRequired: boolean; stage: "codegen" | "dependencies" | "migration"; }>; target?: Readonly<{ commit: string; commits?: readonly ManagedDevCommit[]; shortCommit: string; source: "dev" | "upstream"; subject: string; }>; warnings: readonly string[]; }>; type ManagedDevCodexEvent = Readonly<{ commits: readonly ManagedDevCommit[]; message: ManagedDevMessage; phase: "start"; totalCommits?: number; }> | Readonly<{ message: ManagedDevMessage; phase: "message"; }> | Readonly<{ finalMessage: string; phase: "complete"; }> | Readonly<{ commits: readonly ManagedDevCommit[]; phase: "progress"; totalCommits?: number; }> | Readonly<{ phase: "error"; }>; type ManagedDevActionResult = Readonly<{ error?: string; requestId: string; status?: ManagedDevStatus; }>; type DevelopmentControlResult = Readonly<{ error?: string; requestId: string; state: "busy" | "complete" | "error"; }>; type ManagedDevRequest = Readonly<{ type: "managed-dev-status-request"; }> | Readonly<{ action: ManagedDevAction; requestId: string; type: "managed-dev-action"; }> | Readonly<{ action: Readonly<{ type: "restart-flutter" | "restart-vite"; }>; requestId: string; type: "development-controls-action"; }>; type DevToolsClientOptions = Readonly<{ features?: readonly DevToolsFeature[]; onManagedDevRequest?(request: ManagedDevRequest): Promise | void; onReady?(features: readonly DevToolsFeature[], identity: RuntimeIdentity): void; onStateLauncherRequest?(request: StateLauncherRequest): Promise | void; }>; type DevToolsClient = Readonly<{ dispose(): void; isConnected(): boolean; publishDevelopmentControlResult(result: DevelopmentControlResult): void; publishManagedDevActionResult(result: ManagedDevActionResult): void; publishManagedDevCodex(event: ManagedDevCodexEvent & { requestId: string; }): void; publishManagedDevStatus(status: ManagedDevStatus): void; publishStateLauncherAuth(auth: StateLauncherAuth | null): void; publishStateLauncherSnapshot(snapshot: readonly StateLauncherCommand[]): void; }>; type RuntimeIdentity = Readonly<{ applicationScopeId: string; rootWebRuntimeId: string; shellSessionId: string; }>; type LauncherRuntimeIdentity = Readonly<{ rootWebRuntimeId: string; shellSessionId: string; }>; declare const hostFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"bootstrap">; payload: z.ZodObject<{ features: z.ZodReadonly>>; }, z.core.$strict>; applicationScopeId: z.ZodString; messageId: z.ZodString; protocolVersion: z.ZodLiteral<2>; rootWebRuntimeId: z.ZodString; sequence: z.ZodNumber; shellSessionId: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"stateLauncherClear">; payload: z.ZodObject<{ requestId: z.ZodString; }, z.core.$strict>; applicationScopeId: z.ZodOptional; messageId: z.ZodString; protocolVersion: z.ZodLiteral<2>; rootWebRuntimeId: z.ZodString; sequence: z.ZodNumber; shellSessionId: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"stateLauncherLaunch">; payload: z.ZodObject<{ id: z.ZodString; requestId: z.ZodString; }, z.core.$strict>; applicationScopeId: z.ZodOptional; messageId: z.ZodString; protocolVersion: z.ZodLiteral<2>; rootWebRuntimeId: z.ZodString; sequence: z.ZodNumber; shellSessionId: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"stateLauncherAuth">; payload: z.ZodObject<{ action: z.ZodEnum<{ signIn: "signIn"; signOut: "signOut"; }>; requestId: z.ZodString; }, z.core.$strict>; applicationScopeId: z.ZodOptional; messageId: z.ZodString; protocolVersion: z.ZodLiteral<2>; rootWebRuntimeId: z.ZodString; sequence: z.ZodNumber; shellSessionId: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"managedDevStatusRequest">; payload: z.ZodObject<{}, z.core.$strict>; applicationScopeId: z.ZodString; messageId: z.ZodString; protocolVersion: z.ZodLiteral<2>; rootWebRuntimeId: z.ZodString; sequence: z.ZodNumber; shellSessionId: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"managedDevAction">; payload: z.ZodObject<{ action: z.ZodDiscriminatedUnion<[z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"acknowledge-codex">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"cancel-codex">; }, z.core.$strict>, z.ZodObject<{ failureId: z.ZodString; type: z.ZodLiteral<"dismiss-check">; }, z.core.$strict>, z.ZodObject<{ codex: z.ZodOptional>; model: z.ZodOptional>; }, z.core.$strict>>; fingerprint: z.ZodOptional; message: z.ZodOptional; target: z.ZodString; type: z.ZodLiteral<"apply">; untracked: z.ZodOptional>>; }, z.core.$strict>, z.ZodObject<{ codex: z.ZodObject<{ effort: z.ZodOptional>; model: z.ZodOptional>; }, z.core.$strict>; type: z.ZodLiteral<"configure-codex">; }, z.core.$strict>, z.ZodObject<{ fingerprint: z.ZodString; message: z.ZodString; type: z.ZodLiteral<"commit">; untracked: z.ZodReadonly>; }, z.core.$strict>, z.ZodObject<{ fingerprint: z.ZodString; type: z.ZodLiteral<"message">; untracked: z.ZodReadonly>; }, z.core.$strict>, z.ZodObject<{ codex: z.ZodOptional>; model: z.ZodOptional>; }, z.core.$strict>>; target: z.ZodString; type: z.ZodLiteral<"prepare">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"decline-rebase">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"reject">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"reset-database">; }, z.core.$strict>, z.ZodObject<{ codex: z.ZodOptional>; model: z.ZodOptional>; }, z.core.$strict>>; type: z.ZodLiteral<"resolve-rebase">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"retry-codegen">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"retry-install">; }, z.core.$strict>], "type">; requestId: z.ZodString; }, z.core.$strict>; applicationScopeId: z.ZodString; messageId: z.ZodString; protocolVersion: z.ZodLiteral<2>; rootWebRuntimeId: z.ZodString; sequence: z.ZodNumber; shellSessionId: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"developmentControlsAction">; payload: z.ZodObject<{ action: z.ZodObject<{ type: z.ZodEnum<{ "restart-flutter": "restart-flutter"; "restart-vite": "restart-vite"; }>; }, z.core.$strict>; requestId: z.ZodString; }, z.core.$strict>; applicationScopeId: z.ZodString; messageId: z.ZodString; protocolVersion: z.ZodLiteral<2>; rootWebRuntimeId: z.ZodString; sequence: z.ZodNumber; shellSessionId: z.ZodString; }, z.core.$strict>], "kind">; type WithoutMessageId = Frame extends unknown ? Readonly> : never; type HostFrame = WithoutMessageId>; declare function decodeHostFrame(value: unknown): HostFrame | undefined; //#endregion export { DevToolsClient, DevToolsClientOptions, DevToolsFeature, DevelopmentControlResult, HostFrame, LauncherRuntimeIdentity, ManagedDevAction, ManagedDevActionResult, ManagedDevCodexEvent, ManagedDevCommit, ManagedDevMessage, ManagedDevRequest, ManagedDevStatus, RuntimeIdentity, StateLauncherAuth, StateLauncherAuthAction, StateLauncherCommand, StateLauncherRequest, decodeHostFrame, devToolsEvent, devToolsProtocolVersion, devToolsWebReadyType, supportedFeatures };