import { z } from "zod"; export declare const trackSchema: z.ZodEnum<{ A: "A"; B: "B"; C: "C"; }>; export type Track = z.infer; export declare const gateSchema: z.ZodEnum<{ design: "design"; scope: "scope"; }>; export type ApprovalGate = z.infer; export declare const repositoryPathSchema: z.ZodString; export declare const assessmentSchema: z.ZodObject<{ proposedTrack: z.ZodOptional>; complexity: z.ZodDefault>; riskFlags: z.ZodDefault>>; uncertainties: z.ZodDefault>; reasons: z.ZodDefault>; paths: z.ZodDefault>; }, z.core.$strict>; export type Assessment = z.infer; export declare const designSchema: z.ZodObject<{ summary: z.ZodString; alternatives: z.ZodDefault>; stages: z.ZodArray; verification: z.ZodString; rollback: z.ZodString; references: z.ZodDefault>; }, z.core.$strict>; export declare const workContractSchema: z.ZodObject<{ sourceRevision: z.ZodOptional; title: z.ZodString; context: z.ZodOptional; intent: z.ZodString; acceptanceCriteria: z.ZodDefault>; constraints: z.ZodDefault>; assumptions: z.ZodDefault>; scopePaths: z.ZodDefault>; references: z.ZodDefault>; assessment: z.ZodPrefault>; complexity: z.ZodDefault>; riskFlags: z.ZodDefault>>; uncertainties: z.ZodDefault>; reasons: z.ZodDefault>; paths: z.ZodDefault>; }, z.core.$strict>>; verification: z.ZodPrefault; strategy: z.ZodDefault; manualChecks: z.ZodDefault>; }, z.core.$strict>>; design: z.ZodOptional>; stages: z.ZodArray; verification: z.ZodString; rollback: z.ZodString; references: z.ZodDefault>; }, z.core.$strict>>; }, z.core.$strict>; export type WorkContract = z.infer; export declare const workSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"local">; key: z.ZodString; }, z.core.$strict>, z.ZodObject<{ issueId: z.ZodString; number: z.ZodNumber; url: z.ZodURL; revision: z.ZodString; kind: z.ZodLiteral<"github">; }, z.core.$strict>, z.ZodObject<{ issueId: z.ZodString; number: z.ZodNumber; url: z.ZodURL; revision: z.ZodString; kind: z.ZodLiteral<"gitlab">; }, z.core.$strict>], "kind">; export type WorkSource = z.infer; export declare const workItemSchema: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; source: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"local">; key: z.ZodString; }, z.core.$strict>, z.ZodObject<{ issueId: z.ZodString; number: z.ZodNumber; url: z.ZodURL; revision: z.ZodString; kind: z.ZodLiteral<"github">; }, z.core.$strict>, z.ZodObject<{ issueId: z.ZodString; number: z.ZodNumber; url: z.ZodURL; revision: z.ZodString; kind: z.ZodLiteral<"gitlab">; }, z.core.$strict>], "kind">; contract: z.ZodObject<{ sourceRevision: z.ZodOptional; title: z.ZodString; context: z.ZodOptional; intent: z.ZodString; acceptanceCriteria: z.ZodDefault>; constraints: z.ZodDefault>; assumptions: z.ZodDefault>; scopePaths: z.ZodDefault>; references: z.ZodDefault>; assessment: z.ZodPrefault>; complexity: z.ZodDefault>; riskFlags: z.ZodDefault>>; uncertainties: z.ZodDefault>; reasons: z.ZodDefault>; paths: z.ZodDefault>; }, z.core.$strict>>; verification: z.ZodPrefault; strategy: z.ZodDefault; manualChecks: z.ZodDefault>; }, z.core.$strict>>; design: z.ZodOptional>; stages: z.ZodArray; verification: z.ZodString; rollback: z.ZodString; references: z.ZodDefault>; }, z.core.$strict>>; }, z.core.$strict>; revision: z.ZodString; createdAt: z.ZodISODateTime; updatedAt: z.ZodISODateTime; }, z.core.$strict>; export type WorkItem = z.infer; export declare const approvalRecordSchema: z.ZodObject<{ id: z.ZodString; workItemId: z.ZodString; gate: z.ZodEnum<{ design: "design"; scope: "scope"; }>; revision: z.ZodString; approvedBy: z.ZodString; approvedAt: z.ZodISODateTime; source: z.ZodEnum<{ github: "github"; gitlab: "gitlab"; "local-operator": "local-operator"; }>; evidence: z.ZodOptional; }, z.core.$strict>; export type ApprovalRecord = z.infer; export declare const sdlcPolicySchema: z.ZodObject<{ enabled: z.ZodDefault; defaultTrack: z.ZodDefault>; allowLocalTasks: z.ZodDefault; approvalSource: z.ZodDefault>; approvers: z.ZodDefault>; fastTrackMaxFiles: z.ZodDefault; riskRules: z.ZodDefault; minimumTrack: z.ZodEnum<{ A: "A"; B: "B"; C: "C"; }>; validationProfile: z.ZodOptional; }, z.core.$strict>>>; }, z.core.$strict>; export type SdlcPolicy = z.infer; export interface DecisionReason { code: "expected-outcome" | "uncertainty" | "scope" | "verification" | "approval" | "design" | "track-escalation" | "scope-expansion" | "source-changed"; message: string; } export interface WorkDecision { track: Track; state: "needs-info" | "awaiting-scope-approval" | "design" | "awaiting-design-approval" | "ready"; reasons: DecisionReason[]; trackReasons: string[]; requiredGates: ApprovalGate[]; /** The gate a human may approve now; set only in an awaiting-approval state. */ awaitingGate?: ApprovalGate; } export interface WorkExecution { workItemId: string; revision: string; track: Track; contract: WorkContract; source: WorkSource; changedPaths?: string[]; }