import { z } from "zod"; //#region src/app-daemon-control.d.ts /** Runtime-only Workspace authority delivered from the local daemon to its same-origin App shell. */ declare const AppDaemonWorkspaceBindingSchema: z.ZodObject<{ id: z.ZodString; backendUrl: z.ZodString; credential: z.ZodNullable; projectDir: z.ZodString; ownership: z.ZodEnum<["daemon-managed", "external"]>; registeredAt: z.ZodNumber; managedGeneration: z.ZodNullable; shutdown: z.ZodEnum<["managed", "external-owner", "close-only"]>; git: z.ZodNullable; branch: z.ZodNullable; githubSlug: z.ZodNullable; }, "strip", z.ZodTypeAny, { remoteUrl: string | null; branch: string | null; githubSlug: string | null; }, { remoteUrl: string | null; branch: string | null; githubSlug: string | null; }>>; }, "strip", z.ZodTypeAny, { id: string; backendUrl: string; credential: string | null; projectDir: string; ownership: "daemon-managed" | "external"; registeredAt: number; managedGeneration: number | null; shutdown: "managed" | "external-owner" | "close-only"; git: { remoteUrl: string | null; branch: string | null; githubSlug: string | null; } | null; }, { id: string; backendUrl: string; credential: string | null; projectDir: string; ownership: "daemon-managed" | "external"; registeredAt: number; managedGeneration: number | null; shutdown: "managed" | "external-owner" | "close-only"; git: { remoteUrl: string | null; branch: string | null; githubSlug: string | null; } | null; }>; type AppDaemonWorkspaceBinding = z.infer; /** Complete current daemon ledger; clients replace by revision instead of applying event deltas. */ declare const AppDaemonWorkspaceSnapshotSchema: z.ZodObject<{ revision: z.ZodNumber; workspaces: z.ZodArray; projectDir: z.ZodString; ownership: z.ZodEnum<["daemon-managed", "external"]>; registeredAt: z.ZodNumber; managedGeneration: z.ZodNullable; shutdown: z.ZodEnum<["managed", "external-owner", "close-only"]>; git: z.ZodNullable; branch: z.ZodNullable; githubSlug: z.ZodNullable; }, "strip", z.ZodTypeAny, { remoteUrl: string | null; branch: string | null; githubSlug: string | null; }, { remoteUrl: string | null; branch: string | null; githubSlug: string | null; }>>; }, "strip", z.ZodTypeAny, { id: string; backendUrl: string; credential: string | null; projectDir: string; ownership: "daemon-managed" | "external"; registeredAt: number; managedGeneration: number | null; shutdown: "managed" | "external-owner" | "close-only"; git: { remoteUrl: string | null; branch: string | null; githubSlug: string | null; } | null; }, { id: string; backendUrl: string; credential: string | null; projectDir: string; ownership: "daemon-managed" | "external"; registeredAt: number; managedGeneration: number | null; shutdown: "managed" | "external-owner" | "close-only"; git: { remoteUrl: string | null; branch: string | null; githubSlug: string | null; } | null; }>, "many">; }, "strip", z.ZodTypeAny, { revision: number; workspaces: { id: string; backendUrl: string; credential: string | null; projectDir: string; ownership: "daemon-managed" | "external"; registeredAt: number; managedGeneration: number | null; shutdown: "managed" | "external-owner" | "close-only"; git: { remoteUrl: string | null; branch: string | null; githubSlug: string | null; } | null; }[]; }, { revision: number; workspaces: { id: string; backendUrl: string; credential: string | null; projectDir: string; ownership: "daemon-managed" | "external"; registeredAt: number; managedGeneration: number | null; shutdown: "managed" | "external-owner" | "close-only"; git: { remoteUrl: string | null; branch: string | null; githubSlug: string | null; } | null; }[]; }>; type AppDaemonWorkspaceSnapshot = z.infer; /** Invalidation carries ordering evidence only; the App always Pulls the complete replacement snapshot. */ declare const AppDaemonInvalidationSchema: z.ZodObject<{ revision: z.ZodNumber; }, "strip", z.ZodTypeAny, { revision: number; }, { revision: number; }>; type AppDaemonInvalidation = z.infer; /** Result of asking the daemon to open one currently registered opaque Workspace id. */ declare const AppDaemonOpenWorkspaceResponseSchema: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{ ok: z.ZodLiteral; }, "strip", z.ZodTypeAny, { ok: true; }, { ok: true; }>, z.ZodObject<{ ok: z.ZodLiteral; error: z.ZodObject<{ code: z.ZodEnum<["NOT_FOUND", "PRESENTATION_FAILED"]>; message: z.ZodString; }, "strip", z.ZodTypeAny, { code: "NOT_FOUND" | "PRESENTATION_FAILED"; message: string; }, { code: "NOT_FOUND" | "PRESENTATION_FAILED"; message: string; }>; }, "strip", z.ZodTypeAny, { ok: false; error: { code: "NOT_FOUND" | "PRESENTATION_FAILED"; message: string; }; }, { ok: false; error: { code: "NOT_FOUND" | "PRESENTATION_FAILED"; message: string; }; }>]>; type AppDaemonOpenWorkspaceResponse = z.infer; /** Same-origin request body for starting one daemon-managed project from a local directory. */ declare const AppDaemonStartManagedProjectRequestSchema: z.ZodObject<{ projectDir: z.ZodString; }, "strip", z.ZodTypeAny, { projectDir: string; }, { projectDir: string; }>; type AppDaemonStartManagedProjectRequest = z.infer; /** Same-origin request body for stopping one exact daemon-managed generation. */ declare const AppDaemonStopManagedProjectRequestSchema: z.ZodObject<{ generation: z.ZodNumber; }, "strip", z.ZodTypeAny, { generation: number; }, { generation: number; }>; type AppDaemonStopManagedProjectRequest = z.infer; /** Settled same-origin managed start response. Success means readiness and lease admission completed. */ declare const AppDaemonStartManagedProjectResponseSchema: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{ ok: z.ZodLiteral; workspace: z.ZodObject<{ id: z.ZodString; backendUrl: z.ZodString; credential: z.ZodNullable; projectDir: z.ZodString; ownership: z.ZodEnum<["daemon-managed", "external"]>; registeredAt: z.ZodNumber; managedGeneration: z.ZodNullable; shutdown: z.ZodEnum<["managed", "external-owner", "close-only"]>; git: z.ZodNullable; branch: z.ZodNullable; githubSlug: z.ZodNullable; }, "strip", z.ZodTypeAny, { remoteUrl: string | null; branch: string | null; githubSlug: string | null; }, { remoteUrl: string | null; branch: string | null; githubSlug: string | null; }>>; }, "strip", z.ZodTypeAny, { id: string; backendUrl: string; credential: string | null; projectDir: string; ownership: "daemon-managed" | "external"; registeredAt: number; managedGeneration: number | null; shutdown: "managed" | "external-owner" | "close-only"; git: { remoteUrl: string | null; branch: string | null; githubSlug: string | null; } | null; }, { id: string; backendUrl: string; credential: string | null; projectDir: string; ownership: "daemon-managed" | "external"; registeredAt: number; managedGeneration: number | null; shutdown: "managed" | "external-owner" | "close-only"; git: { remoteUrl: string | null; branch: string | null; githubSlug: string | null; } | null; }>; alreadyRunning: z.ZodBoolean; }, "strip", z.ZodTypeAny, { ok: true; workspace: { id: string; backendUrl: string; credential: string | null; projectDir: string; ownership: "daemon-managed" | "external"; registeredAt: number; managedGeneration: number | null; shutdown: "managed" | "external-owner" | "close-only"; git: { remoteUrl: string | null; branch: string | null; githubSlug: string | null; } | null; }; alreadyRunning: boolean; }, { ok: true; workspace: { id: string; backendUrl: string; credential: string | null; projectDir: string; ownership: "daemon-managed" | "external"; registeredAt: number; managedGeneration: number | null; shutdown: "managed" | "external-owner" | "close-only"; git: { remoteUrl: string | null; branch: string | null; githubSlug: string | null; } | null; }; alreadyRunning: boolean; }>, z.ZodObject<{ ok: z.ZodLiteral; error: z.ZodObject<{ code: z.ZodEnum<["UNSUPPORTED", "INVALID_DIRECTORY", "SPAWN_FAILED", "GENERATION_MISMATCH", "INVALID_REQUEST"]>; message: z.ZodString; }, "strip", z.ZodTypeAny, { code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH"; message: string; }, { code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH"; message: string; }>; }, "strip", z.ZodTypeAny, { ok: false; error: { code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH"; message: string; }; }, { ok: false; error: { code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH"; message: string; }; }>]>; type AppDaemonStartManagedProjectResponse = z.infer; /** Settled same-origin exact-generation Stop response. */ declare const AppDaemonStopManagedProjectResponseSchema: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{ ok: z.ZodLiteral; generation: z.ZodNumber; }, "strip", z.ZodTypeAny, { ok: true; generation: number; }, { ok: true; generation: number; }>, z.ZodObject<{ ok: z.ZodLiteral; error: z.ZodObject<{ code: z.ZodEnum<["UNSUPPORTED", "INVALID_DIRECTORY", "SPAWN_FAILED", "GENERATION_MISMATCH", "INVALID_REQUEST"]>; message: z.ZodString; }, "strip", z.ZodTypeAny, { code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH"; message: string; }, { code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH"; message: string; }>; }, "strip", z.ZodTypeAny, { ok: false; error: { code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH"; message: string; }; }, { ok: false; error: { code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH"; message: string; }; }>]>; type AppDaemonStopManagedProjectResponse = z.infer; //#endregion export { AppDaemonInvalidation, AppDaemonInvalidationSchema, AppDaemonOpenWorkspaceResponse, AppDaemonOpenWorkspaceResponseSchema, AppDaemonStartManagedProjectRequest, AppDaemonStartManagedProjectRequestSchema, AppDaemonStartManagedProjectResponse, AppDaemonStartManagedProjectResponseSchema, AppDaemonStopManagedProjectRequest, AppDaemonStopManagedProjectRequestSchema, AppDaemonStopManagedProjectResponse, AppDaemonStopManagedProjectResponseSchema, AppDaemonWorkspaceBinding, AppDaemonWorkspaceBindingSchema, AppDaemonWorkspaceSnapshot, AppDaemonWorkspaceSnapshotSchema };