import { type AuthorityEnrollmentStoreOptions } from "./authority-enrollment.js"; export type AuthorityArtifact = { readonly archive: Buffer; readonly artifactId: number; readonly artifactDigest: string; readonly fetchedAt: string; readonly repositoryId: number; readonly runId: string; readonly sourceHead: string; }; export type AuthorityArtifactRead = { readonly state: "invalid"; } | { readonly state: "missing"; } | { readonly state: "ready"; readonly value: AuthorityArtifact; }; export declare function authorityArtifactPath(repositoryId: number, options?: Pick): string | undefined; export declare function readAuthorityArtifact(repositoryId: number, options?: Pick): AuthorityArtifactRead; export declare function writeAuthorityArtifact(artifact: AuthorityArtifact, options?: AuthorityEnrollmentStoreOptions): boolean;