export declare const ELECTRON_RELEASE_STATE_SCHEMA: 'doppler.electron-release-state/v1'; export declare const ELECTRON_REVOCATION_SNAPSHOT_SCHEMA: 'doppler.electron-revocation-snapshot/v1'; export interface ElectronCapsuleReference { capsuleId: string; semanticRoot: `sha256:${string}`; path: string; } export interface ElectronRevocationSnapshot extends Record { schema: 'doppler.electron-revocation-snapshot/v1'; authorityId: string; policyDigest: `sha256:${string}`; sequence: number; issuedAtUtc: string; expiresAtUtc: string; revokedSemanticRoots: Array<`sha256:${string}`>; digest: `sha256:${string}`; signature: Record; } export interface ElectronReleaseStateStore { load(): Promise; compareAndSwap(expectedSequence: number, nextState: ElectronReleaseState): Promise; } export interface ElectronReleaseState { schema: 'doppler.electron-release-state/v1'; sequence: number; current: Record | null; previous: Record | null; candidate: Record | null; failures: Record[]; revocation: Record | null; } export interface ElectronReleaseStateCoordinator { load(): Promise; installCandidate(capsule: ElectronCapsuleReference, decisionDigest: `sha256:${string}`): Promise; activateCandidate(decision: Record, customerAuthorizationDigest: `sha256:${string}`): Promise; rejectCandidate(failureBundleDigest: `sha256:${string}`): Promise; rollback(customerAuthorizationDigest: `sha256:${string}`): Promise; applyRevocationSnapshot(snapshot: ElectronRevocationSnapshot): Promise; resolveCurrent(): Promise; } export declare function validateElectronReleaseState(value: unknown): ElectronReleaseState; export declare function createElectronReleaseStateCoordinator(options: { stateStore: ElectronReleaseStateStore; verifyReleaseDecision(decision: Record): Promise | boolean; verifyRevocationSnapshot(snapshot: ElectronRevocationSnapshot): Promise | boolean; now?: () => string; }): ElectronReleaseStateCoordinator;