import { z } from "zod"; import type { SyntheticObjectPlan } from "../coordination/synthetic.js"; import { type HumanScope } from "./human_scope.js"; declare const identitySchema: z.ZodObject<{ device: z.ZodNumber; inode: z.ZodNumber; birthtimeMs: z.ZodNumber; parentDevice: z.ZodNumber; parentInode: z.ZodNumber; parentBirthtimeMs: z.ZodNumber; }, "strict", z.ZodTypeAny, { device: number; inode: number; birthtimeMs: number; parentDevice: number; parentInode: number; parentBirthtimeMs: number; }, { device: number; inode: number; birthtimeMs: number; parentDevice: number; parentInode: number; parentBirthtimeMs: number; }>; export declare const resourceFactSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"import-started">; graphHash: z.ZodString; commits: z.ZodArray; }, "strict", z.ZodTypeAny, { type: "import-started"; graphHash: string; commits: string[]; }, { type: "import-started"; graphHash: string; commits: string[]; }>, z.ZodObject<{ type: z.ZodLiteral<"import-result">; status: z.ZodEnum<["imported", "failed", "unknown"]>; evidenceHash: z.ZodString; }, "strict", z.ZodTypeAny, { status: "unknown" | "failed" | "imported"; type: "import-result"; evidenceHash: string; }, { status: "unknown" | "failed" | "imported"; type: "import-result"; evidenceHash: string; }>, z.ZodObject<{ type: z.ZodLiteral<"create-started">; }, "strict", z.ZodTypeAny, { type: "create-started"; }, { type: "create-started"; }>, z.ZodObject<{ type: z.ZodLiteral<"mkdir-owned">; identity: z.ZodObject<{ device: z.ZodNumber; inode: z.ZodNumber; birthtimeMs: z.ZodNumber; parentDevice: z.ZodNumber; parentInode: z.ZodNumber; parentBirthtimeMs: z.ZodNumber; }, "strict", z.ZodTypeAny, { device: number; inode: number; birthtimeMs: number; parentDevice: number; parentInode: number; parentBirthtimeMs: number; }, { device: number; inode: number; birthtimeMs: number; parentDevice: number; parentInode: number; parentBirthtimeMs: number; }>; }, "strict", z.ZodTypeAny, { type: "mkdir-owned"; identity: { device: number; inode: number; birthtimeMs: number; parentDevice: number; parentInode: number; parentBirthtimeMs: number; }; }, { type: "mkdir-owned"; identity: { device: number; inode: number; birthtimeMs: number; parentDevice: number; parentInode: number; parentBirthtimeMs: number; }; }>, z.ZodObject<{ type: z.ZodLiteral<"branch-created">; head: z.ZodString; }, "strict", z.ZodTypeAny, { type: "branch-created"; head: string; }, { type: "branch-created"; head: string; }>, z.ZodObject<{ type: z.ZodLiteral<"add-started">; }, "strict", z.ZodTypeAny, { type: "add-started"; }, { type: "add-started"; }>, z.ZodObject<{ type: z.ZodLiteral<"ready">; gitDir: z.ZodEffects; evidenceHash: z.ZodString; }, "strict", z.ZodTypeAny, { type: "ready"; evidenceHash: string; gitDir: string; }, { type: "ready"; evidenceHash: string; gitDir: string; }>, z.ZodObject<{ type: z.ZodLiteral<"released">; evidenceHash: z.ZodString; }, "strict", z.ZodTypeAny, { type: "released"; evidenceHash: string; }, { type: "released"; evidenceHash: string; }>, z.ZodObject<{ type: z.ZodLiteral<"retained">; reason: z.ZodString; evidenceHash: z.ZodString; }, "strict", z.ZodTypeAny, { type: "retained"; evidenceHash: string; reason: string; }, { type: "retained"; evidenceHash: string; reason: string; }>]>; export declare const resourceEventSchema: z.ZodObject<{ kind: z.ZodLiteral<"qualification-resource">; resourceId: z.ZodEffects; observedAt: z.ZodString; fact: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"import-started">; graphHash: z.ZodString; commits: z.ZodArray; }, "strict", z.ZodTypeAny, { type: "import-started"; graphHash: string; commits: string[]; }, { type: "import-started"; graphHash: string; commits: string[]; }>, z.ZodObject<{ type: z.ZodLiteral<"import-result">; status: z.ZodEnum<["imported", "failed", "unknown"]>; evidenceHash: z.ZodString; }, "strict", z.ZodTypeAny, { status: "unknown" | "failed" | "imported"; type: "import-result"; evidenceHash: string; }, { status: "unknown" | "failed" | "imported"; type: "import-result"; evidenceHash: string; }>, z.ZodObject<{ type: z.ZodLiteral<"create-started">; }, "strict", z.ZodTypeAny, { type: "create-started"; }, { type: "create-started"; }>, z.ZodObject<{ type: z.ZodLiteral<"mkdir-owned">; identity: z.ZodObject<{ device: z.ZodNumber; inode: z.ZodNumber; birthtimeMs: z.ZodNumber; parentDevice: z.ZodNumber; parentInode: z.ZodNumber; parentBirthtimeMs: z.ZodNumber; }, "strict", z.ZodTypeAny, { device: number; inode: number; birthtimeMs: number; parentDevice: number; parentInode: number; parentBirthtimeMs: number; }, { device: number; inode: number; birthtimeMs: number; parentDevice: number; parentInode: number; parentBirthtimeMs: number; }>; }, "strict", z.ZodTypeAny, { type: "mkdir-owned"; identity: { device: number; inode: number; birthtimeMs: number; parentDevice: number; parentInode: number; parentBirthtimeMs: number; }; }, { type: "mkdir-owned"; identity: { device: number; inode: number; birthtimeMs: number; parentDevice: number; parentInode: number; parentBirthtimeMs: number; }; }>, z.ZodObject<{ type: z.ZodLiteral<"branch-created">; head: z.ZodString; }, "strict", z.ZodTypeAny, { type: "branch-created"; head: string; }, { type: "branch-created"; head: string; }>, z.ZodObject<{ type: z.ZodLiteral<"add-started">; }, "strict", z.ZodTypeAny, { type: "add-started"; }, { type: "add-started"; }>, z.ZodObject<{ type: z.ZodLiteral<"ready">; gitDir: z.ZodEffects; evidenceHash: z.ZodString; }, "strict", z.ZodTypeAny, { type: "ready"; evidenceHash: string; gitDir: string; }, { type: "ready"; evidenceHash: string; gitDir: string; }>, z.ZodObject<{ type: z.ZodLiteral<"released">; evidenceHash: z.ZodString; }, "strict", z.ZodTypeAny, { type: "released"; evidenceHash: string; }, { type: "released"; evidenceHash: string; }>, z.ZodObject<{ type: z.ZodLiteral<"retained">; reason: z.ZodString; evidenceHash: z.ZodString; }, "strict", z.ZodTypeAny, { type: "retained"; evidenceHash: string; reason: string; }, { type: "retained"; evidenceHash: string; reason: string; }>]>; }, "strict", z.ZodTypeAny, { kind: "qualification-resource"; observedAt: string; resourceId: string; fact: { type: "import-started"; graphHash: string; commits: string[]; } | { status: "unknown" | "failed" | "imported"; type: "import-result"; evidenceHash: string; } | { type: "create-started"; } | { type: "mkdir-owned"; identity: { device: number; inode: number; birthtimeMs: number; parentDevice: number; parentInode: number; parentBirthtimeMs: number; }; } | { type: "branch-created"; head: string; } | { type: "add-started"; } | { type: "ready"; evidenceHash: string; gitDir: string; } | { type: "released"; evidenceHash: string; } | { type: "retained"; evidenceHash: string; reason: string; }; }, { kind: "qualification-resource"; observedAt: string; resourceId: string; fact: { type: "import-started"; graphHash: string; commits: string[]; } | { status: "unknown" | "failed" | "imported"; type: "import-result"; evidenceHash: string; } | { type: "create-started"; } | { type: "mkdir-owned"; identity: { device: number; inode: number; birthtimeMs: number; parentDevice: number; parentInode: number; parentBirthtimeMs: number; }; } | { type: "branch-created"; head: string; } | { type: "add-started"; } | { type: "ready"; evidenceHash: string; gitDir: string; } | { type: "released"; evidenceHash: string; } | { type: "retained"; evidenceHash: string; reason: string; }; }>; export type ResourceFact = z.infer; export type ResourceState = { phase: "reserved" | "mkdir-owned" | "add-started" | "ready" | "released"; importStarted?: true; importResult?: "imported" | "failed" | "unknown"; createStarted?: true; identity?: z.infer; branchCreated?: string; gitDir?: string; evidenceHash?: string; retained?: { reason: string; evidenceHash: string; }; }; /** Approved parent-first bytes only. No filesystem, Git, ledger, clock or credential access. */ export declare function qualificationSourceGraph(scope: HumanScope, resourceId: string): SyntheticObjectPlan[]; export declare function startsResourceOperation(fact: ResourceFact): boolean; /** Validates history, never supplies native ownership/deletion authority from recorded JSON. */ export declare function reduceResourceFact(scope: HumanScope, resourceId: string, previous: ResourceState, fact: ResourceFact, writesClosed: boolean, revoked: boolean): ResourceState; export {}; //# sourceMappingURL=human_resources.d.ts.map