import { DaemonStatus } from '../../clients/vault-provider/types'; import { PeginStatusReader } from './interfaces'; export interface WaitForPeginStatusParams { /** VP client implementing the status reader interface */ statusReader: PeginStatusReader; /** BTC pegin transaction ID (unprefixed hex, 64 chars) */ peginTxid: string; /** Set of acceptable statuses — polling stops when the VP reports one of these */ targetStatuses: ReadonlySet; /** Maximum time to wait in milliseconds */ timeoutMs: number; /** Polling interval in milliseconds (default: 10s) */ pollIntervalMs?: number; /** AbortSignal for cancellation */ signal?: AbortSignal; } /** * Poll `getPeginStatus` until the VP reaches one of the target statuses. * * @returns The DaemonStatus that matched one of the targets, OR * `DaemonStatus.ACTIVATED` if the VP raced past the requested target into the * happy-path terminal (success-via-overshoot — the goal is satisfied). * @throws Error on timeout, abort, non-transient RPC error, or any terminal status (`Expired` + `VP_TERMINAL_FAILURE_STATUSES`) not in `targetStatuses`. */ export declare function waitForPeginStatus(params: WaitForPeginStatusParams): Promise; //# sourceMappingURL=waitForPeginStatus.d.ts.map