import { type AuthorizationGrant } from './authorization-grant.js'; import { type EffectLedger } from './ledger.js'; import type { EffectLinks } from './types.js'; import { type LedgerVerifyFailure } from './verify.js'; export interface StoredAuthorizationGrant { grant: AuthorizationGrant; effectId: string; recordHash: string; } export interface AuthorizationGrantRead { grants: StoredAuthorizationGrant[]; failures: LedgerVerifyFailure[]; } /** Fail closed on ledger damage. Expired/revoked grants remain history; matching belongs to #4001. */ export declare function readAuthorizationGrants(ledger: EffectLedger): Promise; /** Trusted host API only: it records supplied human evidence, and does not authenticate a user. */ export declare function recordAuthorizationGrant(ledger: EffectLedger, value: unknown, links?: EffectLinks): Promise; /** Inspect derived index drift without creating directories, repairing files or acquiring signing keys. */ export declare function inspectAuthorizationIndex(ledger: EffectLedger, read: AuthorizationGrantRead): Promise<"absent" | "current" | "missing" | "drift">; /** Rebuild and compare the index, retaining a nonzero result for damage found before repair. */ export declare function verifyAuthorizationGrants(ledger: EffectLedger): Promise<{ ok: boolean; exitCode: number; grants: number; indexChanged: boolean; failures: LedgerVerifyFailure[]; }>; //# sourceMappingURL=authorization-store.d.ts.map