import type { ControlVerificationAbandonment } from "@onebots/core/control"; import { type GatewayVerificationCommand } from "../gateway/verification-command.js"; import { type VerificationRecord } from "./verification-record.js"; import { type PersistedOperationObserver } from "../persisted-operation-observer.js"; export { ControlVerificationError, type VerificationRecord } from "./verification-record.js"; /** 唯一manager持锁访问;密钥与回执分目录,验证码只参与带秘密密钥的摘要。 */ export declare class ControlVerificationStore { private readonly onOperation?; private root?; private keys?; private operations?; private key?; private abandonments?; private fingerprint?; private blocked; private readonly uncertain; private readonly observed; constructor(directory: string, onOperation?: PersistedOperationObserver); health(): { available: boolean; }; digest(input: GatewayVerificationCommand): string; accountHash(platform: string, accountId: string): string; read(id: string): VerificationRecord; create(input: VerificationRecord): void; finish(input: VerificationRecord): void; /** 仅追加来自原实例的确定性证明,保留原 unknown 状态与时间。 */ resolve(expected: VerificationRecord, outcome: "succeeded" | "rejected"): VerificationRecord; /** 接受风险只解除后续操作门禁,不改变原调用的未知结果。 */ acknowledge(expected: VerificationRecord, actor: string): VerificationRecord; assertNotAbandoned(id: string): void; abandonment(owner: string, id: string, localRecovery?: boolean): ControlVerificationAbandonment; abandon(owner: string, id: string, localRecovery?: boolean): ControlVerificationAbandonment; hasUncertainAccount(accountHash: string): boolean; private assertAvailable; private audit; private verifyKey; private write; private observe; private finishedAt; } //# sourceMappingURL=verification-store.d.ts.map