import type { AuthorityArtifactTuple } from "./authority-artifact-binding.js"; import type { AuthorityArtifact } from "./authority-artifact-store.js"; import type { AuthorityEnrollment } from "./authority-enrollment.js"; export type GithubAuthorityFetchDiagnostic = "authority-fetch-evidence" | "authority-fetch-invalid" | "authority-fetch-network" | "authority-fetch-policy"; export type GithubAuthorityFetchResult = { readonly diagnostic?: GithubAuthorityFetchDiagnostic; readonly kind: "blocked"; } | { readonly artifact: AuthorityArtifact; readonly kind: "ready"; }; export declare function serializeAuthorityFetchChildInput(enrollment: Pick, sourceHead: string, expected: AuthorityArtifactTuple): string; export declare function fetchGithubAuthorityArtifact(projectDir: string, enrollment: AuthorityEnrollment, expected: AuthorityArtifactTuple, githubToken: string | undefined, now?: Date): GithubAuthorityFetchResult; export declare function parseFetchedArtifact(value: string): { readonly archive: Buffer; readonly artifactId: number; readonly artifactDigest: string; readonly runId: string; } | undefined; export declare function createAuthorityFetchChildEnvironment(githubToken: string, platform?: NodeJS.Platform, darwinTextEncoding?: string | undefined): Readonly> | undefined; export declare function parseGithubAuthorityFetchDiagnostic(value: string): GithubAuthorityFetchDiagnostic | undefined;