import { z } from "zod"; export declare const SKILL_POLICY_ACTIONS: readonly ["skills.create", "skills.import", "skills.install", "skills.edit", "skills.update", "skills.test", "skills.reset", "skills.remove"]; export declare const SKILL_POLICY_SOURCE_TYPES: readonly ["workspace", "catalog", "git", "external_package", "generated", "unknown"]; export declare const skillPolicyActionSchema: z.ZodEnum<{ "skills.create": "skills.create"; "skills.edit": "skills.edit"; "skills.import": "skills.import"; "skills.install": "skills.install"; "skills.remove": "skills.remove"; "skills.reset": "skills.reset"; "skills.test": "skills.test"; "skills.update": "skills.update"; }>; export declare const skillPolicySourceTypeSchema: z.ZodEnum<{ catalog: "catalog"; external_package: "external_package"; generated: "generated"; git: "git"; unknown: "unknown"; workspace: "workspace"; }>; export declare const skillPolicyEffectSchema: z.ZodEnum<{ allow: "allow"; deny: "deny"; }>; export declare function normalizeSkillPolicySourceLocator(value: string): string; export declare const skillPolicySubjectSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"all_agents">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"agents">; agentIds: z.ZodArray; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"roles">; roles: z.ZodArray; }, z.core.$strict>], "type">; export declare const skillPolicyResourceSelectorSchema: z.ZodObject<{ skillIds: z.ZodOptional>; skillKeys: z.ZodOptional>; sourceTypes: z.ZodOptional>>; sourceLocators: z.ZodOptional>>>; }, z.core.$strict>; export declare const skillPolicyRuleSchema: z.ZodObject<{ id: z.ZodString; priority: z.ZodNumber; effect: z.ZodEnum<{ allow: "allow"; deny: "deny"; }>; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"all_agents">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"agents">; agentIds: z.ZodArray; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"roles">; roles: z.ZodArray; }, z.core.$strict>], "type">; actions: z.ZodArray>; resources: z.ZodOptional>; skillKeys: z.ZodOptional>; sourceTypes: z.ZodOptional>>; sourceLocators: z.ZodOptional>>>; }, z.core.$strict>>; }, z.core.$strict>; export declare const skillPolicyDocumentSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<1>; defaultEffect: z.ZodEnum<{ allow: "allow"; deny: "deny"; }>; rules: z.ZodArray; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"all_agents">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"agents">; agentIds: z.ZodArray; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"roles">; roles: z.ZodArray; }, z.core.$strict>], "type">; actions: z.ZodArray>; resources: z.ZodOptional>; skillKeys: z.ZodOptional>; sourceTypes: z.ZodOptional>>; sourceLocators: z.ZodOptional>>>; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>; export declare const replaceSkillPolicySchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<1>; defaultEffect: z.ZodEnum<{ allow: "allow"; deny: "deny"; }>; rules: z.ZodArray; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"all_agents">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"agents">; agentIds: z.ZodArray; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"roles">; roles: z.ZodArray; }, z.core.$strict>], "type">; actions: z.ZodArray>; resources: z.ZodOptional>; skillKeys: z.ZodOptional>; sourceTypes: z.ZodOptional>>; sourceLocators: z.ZodOptional>>>; }, z.core.$strict>>; }, z.core.$strict>>; expectedRevision: z.ZodNumber; }, z.core.$strict>; export declare const skillPolicyEvaluationResourceSchema: z.ZodObject<{ skillId: z.ZodOptional; skillKey: z.ZodOptional; sourceType: z.ZodOptional>; sourceLocator: z.ZodOptional>>; }, z.core.$strict>; export declare const evaluateSkillPolicySchema: z.ZodObject<{ action: z.ZodEnum<{ "skills.create": "skills.create"; "skills.edit": "skills.edit"; "skills.import": "skills.import"; "skills.install": "skills.install"; "skills.remove": "skills.remove"; "skills.reset": "skills.reset"; "skills.test": "skills.test"; "skills.update": "skills.update"; }>; resource: z.ZodDefault; skillKey: z.ZodOptional; sourceType: z.ZodOptional>; sourceLocator: z.ZodOptional>>; }, z.core.$strict>>; principal: z.ZodOptional>; }, z.core.$strict>; export type SkillPolicyAction = z.infer; export type SkillPolicySourceType = z.infer; export type SkillPolicyEffect = z.infer; export type SkillPolicySubject = z.infer; export type SkillPolicyResourceSelector = z.infer; export type SkillPolicyRule = z.infer; export type SkillPolicyDocument = z.infer; export type ReplaceSkillPolicy = z.infer; export type SkillPolicyEvaluationResource = z.infer; export type EvaluateSkillPolicy = z.infer; export type EffectiveSkillPolicy = SkillPolicyDocument & { revision: number; materialized: boolean; }; export type SkillPolicyDecisionReason = "platform_invariant" | "no_policy_default" | "explicit_rule" | "policy_default" | "legacy_compatibility"; export type SkillPolicyDecision = { allowed: boolean; action: SkillPolicyAction; reason: SkillPolicyDecisionReason; policyRevision: number; matchedRuleId: string | null; remediation: string | null; }; //# sourceMappingURL=skill-policy.d.ts.map