import { RevocationList, KeyPair } from '../types'; import { IStorageProvider } from '../storage'; /** * Mock revocation registry - in production this would be a distributed ledger or database */ declare class MockRevocationRegistry { private static registry; private static readonly BASE_URL; static publish(issuerDID: string, revocationList: RevocationList): string; static fetch(issuerDID: string): Promise; static fetchByUrl(url: string): Promise; static clear(): void; } export declare class RevocationService { private keyPair; private issuerDID; private storageProvider; constructor(keyPair: KeyPair, issuerDID: string, storageProvider?: IStorageProvider); /** * Revoke a credential by adding its ID to the revocation list */ revokeCredential(credentialId: string): Promise; /** * Unrevoke a credential by removing its ID from the revocation list */ unrevokeCredential(credentialId: string): Promise; /** * Check if a credential is revoked */ isRevoked(credentialId: string): Promise; /** * Get all revoked credential IDs */ getRevokedCredentials(): Promise; /** * Update the revocation list in storage */ private updateRevocationList; /** * Create a signature for the revocation list */ private createRevocationSignature; /** * Create and sign a revocation list (for backward compatibility) */ createRevocationList(): Promise; /** * Sign a revocation list */ private signRevocationList; /** * Publish the revocation list to the mock registry */ publishRevocationList(): Promise; /** * Verify a revocation list signature */ static verifyRevocationList(revocationList: RevocationList, issuerPublicKey: Uint8Array): Promise; /** * Fetch a revocation list from a URL (using mock registry) */ static fetchRevocationList(url: string): Promise; /** * Fetch a revocation list by issuer DID (using mock registry) */ static fetchRevocationListByIssuer(issuerDID: string): Promise; /** * Clear the mock registry (for testing) */ static clearRegistry(): void; revokeCredentialSync(credentialId: string): void; unrevokeCredentialSync(credentialId: string): void; isRevokedSync(credentialId: string): boolean; getRevokedCredentialsSync(): string[]; setStorageProvider(provider: IStorageProvider): void; } export { MockRevocationRegistry }; //# sourceMappingURL=revocation-service.d.ts.map