import { z } from "zod"; import { type Delegation } from "./protocol.js"; export declare const controlCreateSchema: z.ZodObject<{ protocolVersion: z.ZodLiteral<1>; idempotencyKey: z.ZodString; sessionId: z.ZodUUID; task: z.ZodString; mode: z.ZodEnum<{ local: "local"; cloud: "cloud"; }>; repository: z.ZodString; baseCommitSha: z.ZodString; model: z.ZodString; }, z.core.$strict>; export declare const paginationSchema: z.ZodObject<{ limit: z.ZodDefault; cursor: z.ZodOptional; }, z.core.$strict>; export declare const controlListSchema: z.ZodObject<{ limit: z.ZodDefault; cursor: z.ZodOptional; organizationId: z.ZodString; }, z.core.$strict>; export declare const controlGetSchema: z.ZodObject<{ delegationId: z.ZodUUID; }, z.core.$strict>; export declare const controlCancelSchema: z.ZodObject<{ delegationId: z.ZodUUID; generation: z.ZodString; reason: z.ZodOptional; }, z.core.$strict>; export declare const controlResultSchema: z.ZodObject<{ delegationId: z.ZodUUID; resultDigest: z.ZodString; result: z.ZodObject<{ summary: z.ZodString; patch: z.ZodEnum<{ present: "present"; none: "none"; }>; }, z.core.$strict>; }, z.core.$strict>; export declare const controlReviewSchema: z.ZodObject<{ delegationId: z.ZodUUID; operationId: z.ZodUUID; generation: z.ZodString; resultDigest: z.ZodString; decision: z.ZodEnum<{ apply: "apply"; take_over: "take_over"; discard: "discard"; }>; expectedBaseCommitSha: z.ZodString; }, z.core.$strict>; /** Public projection intentionally omits task, scope, attempt internals, cursors and worker diagnostics. */ export declare const publicDelegationSchema: z.ZodObject<{ protocolVersion: z.ZodLiteral<1>; delegationId: z.ZodUUID; mode: z.ZodEnum<{ local: "local"; cloud: "cloud"; }>; repository: z.ZodString; baseCommitSha: z.ZodString; state: z.ZodEnum<{ failed: "failed"; queued: "queued"; running: "running"; succeeded: "succeeded"; cancelled: "cancelled"; timed_out: "timed_out"; awaiting_review: "awaiting_review"; taken_over: "taken_over"; discarded: "discarded"; expired: "expired"; }>; attemptNumber: z.ZodNumber; createdAt: z.ZodISODateTime; terminalAt: z.ZodNullable; resultDigest: z.ZodNullable; }, z.core.$strict>; export type PublicDelegation = z.infer; export declare const controlListResponseSchema: z.ZodObject<{ items: z.ZodArray; delegationId: z.ZodUUID; mode: z.ZodEnum<{ local: "local"; cloud: "cloud"; }>; repository: z.ZodString; baseCommitSha: z.ZodString; state: z.ZodEnum<{ failed: "failed"; queued: "queued"; running: "running"; succeeded: "succeeded"; cancelled: "cancelled"; timed_out: "timed_out"; awaiting_review: "awaiting_review"; taken_over: "taken_over"; discarded: "discarded"; expired: "expired"; }>; attemptNumber: z.ZodNumber; createdAt: z.ZodISODateTime; terminalAt: z.ZodNullable; resultDigest: z.ZodNullable; }, z.core.$strict>>; nextCursor: z.ZodNullable; }, z.core.$strict>; export declare const controlErrorSchema: z.ZodObject<{ error: z.ZodObject<{ code: z.ZodString; message: z.ZodString; requestId: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; export declare function toPublicDelegation(delegation: Delegation): PublicDelegation;