/** * Reachout-timelock mapping: server payload → public `ReachoutTimelockState`. * Shared between the push-notification path (`Event::MexNotification` with * op_name `NotificationUserReachoutTimelockUpdate`) and the on-demand * `fetchReachoutTimelock()` IQ. Both deliver the same field shape. */ import { type ReachoutTimelockState } from '../Types/Reachout.js'; /** Wire shape from `xwa2_fetch_account_reachout_timelock`. */ export interface ReachoutTimelockWire { is_active?: boolean; /** Unix seconds as string. `"0"` or absent → cooldown not set. */ time_enforcement_ends?: string; enforcement_type?: string; } /** Locate the timelock object inside an arbitrary payload — the bridge * hands us either the raw `xwa2_…` body (from `fetchReachoutTimelock`) * or a wrapping MEX response (from the push notification). */ export declare function extractReachoutPayload(value: unknown): ReachoutTimelockWire | null; /** Map wire payload → public state. Returns `null` when the payload is * empty or unparseable so callers can skip the emit. */ export declare function mapReachoutTimelock(value: unknown): ReachoutTimelockState | null; //# sourceMappingURL=reachout.d.ts.map