import type { BaseApp } from "@onebots/core"; import { GatewayVerificationStore } from "./verification-store.js"; import { type GatewayVerificationCommand } from "./verification-command.js"; export { isGatewayVerificationCommand, type GatewayVerificationCommand, } from "./verification-command.js"; export type GatewayVerificationOutcome = { outcome: "succeeded" | "rejected" | "unknown"; }; export interface GatewayVerificationQuery { operationId: string; challengeId: string; verificationAction: "submit" | "request-sms"; } export type GatewayVerificationState = "missing" | "running" | "succeeded" | "rejected" | "unknown"; /** 本进程防重放;持久化派发意图与跨重启恢复由 manager 持有。 */ export declare class GatewayVerificationExecutor { private readonly app; private readonly store; private readonly context; private readonly key; private readonly receipts; private readonly busy; private closed; constructor(app: Pick, store: GatewayVerificationStore, context: GatewayVerificationCommand["expected"]); execute(input: GatewayVerificationCommand): Promise; /** missing 仅表示无匹配的本进程证据,绝不证明操作未执行。 */ query(input: GatewayVerificationQuery): { state: GatewayVerificationState; }; close(): void; } //# sourceMappingURL=verification-executor.d.ts.map