import type { ProjectFinishAttestationEnrolledPolicy } from "./project-finish-attestation-verifier.js"; declare const AUTHORITY_AUDIT_SCHEMA: "consumer-authority-audit.1"; declare const AUTHORITY_ENROLLMENT_SCHEMA: "consumer-authority-enrollment.1"; export declare const AUTHORITY_STORE_SCHEMA: "consumer-authority-store.1"; export declare const MAX_AUTHORITY_AUDIT_RECORDS = 512; export type AuthorityEnrollment = ProjectFinishAttestationEnrolledPolicy & { readonly enrolledAt: string; readonly event: "push"; readonly policyMarker: "user-scoped-enrollment-v1"; readonly protectionPolicy: "branch-protection-not-proven"; readonly ref: "refs/heads/main"; readonly schemaVersion: typeof AUTHORITY_ENROLLMENT_SCHEMA; }; export type AuthorityEnrollmentReadback = { readonly callerWorkflowPath: string; readonly repositoryId: number; readonly repositorySlug: string; readonly reusableWorkflowSha: string; }; export type AuthorityAuditRecord = { readonly action: "enrolled" | "updated"; readonly callerWorkflowPath: string; readonly event: AuthorityEnrollment["event"]; readonly occurredAt: string; readonly protectionPolicy: AuthorityEnrollment["protectionPolicy"]; readonly ref: AuthorityEnrollment["ref"]; readonly repositoryId: number; readonly repositorySlug: string; readonly reusableWorkflowSha: string; readonly schemaVersion: typeof AUTHORITY_AUDIT_SCHEMA; }; export type AuthorityStore = { readonly audit: readonly AuthorityAuditRecord[]; readonly entries: readonly AuthorityEnrollment[]; readonly schemaVersion: typeof AUTHORITY_STORE_SCHEMA; }; export declare function authorityEnrollmentFromReadback(readback: AuthorityEnrollmentReadback, now?: Date): AuthorityEnrollment | undefined; export declare function authorityAuditRecord(enrollment: AuthorityEnrollment, action: AuthorityAuditRecord["action"]): AuthorityAuditRecord; export declare function parseAuthorityStore(value: unknown): AuthorityStore | undefined; export declare function isAuthorityEnrollment(value: unknown): value is AuthorityEnrollment; export {};