/** * Timing helpers shared by the durable application primitives (the command * mailbox, WFT-84, and the delivery outbox, WFT-85): the deterministic retry * backoff every reschedule uses, and the abortable sleep every polling wait * uses. * * @module core/application-primitive-timing */ /** Deterministic exponential backoff. No jitter, so redelivery timing is testable. */ export declare function computeRetryBackoffMs(attempt: number, baseMs: number, maximumMs: number): number; /** * Sleep, resolving `false` when the wait was aborted or the primitive disposed * and `true` when the interval actually elapsed. * * The listeners are removed on every path, including the timer path, so a * long-lived primitive does not accumulate abort listeners once per poll. */ export declare function delayUnlessAborted(milliseconds: number, disposal: AbortSignal, signal?: AbortSignal): Promise;