/** * Single-call aggregate pause check for Lit Actions (`PositionManager.getProtocolPauseStatus`). * Align relevance keys with on-chain `whenNotPaused` / `whenLiquidationsNotPaused` (see protocol docs). * * Pause state is TRI-state (`PauseFlag`): the decomposed path can fail to read an individual * module, and "could not read" must never be reported as "not paused" — a pause guards * fund-moving operations, so a fail-open there is strictly worse than a refusal. See * PAUSE_UNREADABLE and `assertProtocolNotPausedForOperation`. */ /** * Sentinel for "the pause state of this module could not be determined". * * A protocol pause exists to STOP fund-moving operations. Collapsing a failed read into * `false` ("not paused") is a fail-OPEN: an RPC hiccup, a reverting proxy or an unwired * module would silently disable the pause exactly when the operator is relying on it. * The tri-state keeps "could not read" distinguishable from "read, and it is not paused" * all the way to the assertion, which decides — per operation — whether it matters. */ export declare const PAUSE_UNREADABLE = "unreadable"; /** `true` paused · `false` not paused · `"unreadable"` the read failed (see PAUSE_UNREADABLE). */ export type PauseFlag = boolean | typeof PAUSE_UNREADABLE; export type ProtocolPauseStatus = { positionManagerPaused: PauseFlag; positionManagerLiquidationsPaused: PauseFlag; positionManagerCorePaused: PauseFlag; loanOperationsPaused: PauseFlag; collateralManagerPaused: PauseFlag; liquidationManagerPaused: PauseFlag; circuitBreakerPaused: PauseFlag; ucdControllerPaused: PauseFlag; ucdTokenPaused: PauseFlag; simplePsmPaused: PauseFlag; }; export type ProtocolPauseOperation = "mintUcd" | "withdrawBtc" | "processPayment" | "extendPosition" | "liquidation" | "btcTransactionSign"; export declare function fetchProtocolPauseStatus(provider: any, positionManagerAddress: string): Promise; export declare function assertProtocolNotPausedForOperation(operation: ProtocolPauseOperation, status: ProtocolPauseStatus): void; //# sourceMappingURL=protocol-pause.module.d.ts.map