export interface EnrollmentInspectionInput { keyId: string; orgId: string; enrollmentOperationId: string; enrollmentManifestDigest: string; } export interface EnrollmentInspectionResult { status: "inspected"; target: { state: "found"; scopes: string[]; } | { state: "absent" | "revoked" | "mismatched" | "ambiguous"; }; audit: { state: "absent" | "matching" | "mismatched" | "ambiguous"; }; } type InspectionCode = "INVALID_INSPECTION_INPUT" | "POSTGRES_REQUIRED" | "INVALID_INSPECTION_RESULT" | "INSPECTION_FAILED" | "INSPECTION_SCHEMA_UNAVAILABLE" | "INSPECTION_ACCESS_DENIED" | "INSPECTION_WRITE_REFUSED" | "INSPECTION_TIMEOUT" | "INSPECTION_CONNECTION_FAILED"; export declare class EnrollmentInspectionError extends Error { readonly code: InspectionCode; constructor(code: InspectionCode); } /** Inspect metadata only. Deliberately does not import or initialize the application store. */ export declare function inspectEnrollment(databaseUrl: string, input: EnrollmentInspectionInput): Promise; export {};