/** * @since 0.1.4 */ import { ReaderTask } from 'fp-ts/lib/ReaderTask' import { RetryPolicy, RetryStatus } from './index' /** * Apply policy and delay by its amount if it results in a retry. * Returns updated status. * * @since 0.1.4 */ export declare const applyAndDelay: (policy: RetryPolicy, status: RetryStatus) => ReaderTask /** * Retry combinator for actions that don't raise exceptions, but * signal in their type the outcome has failed. Examples are the * `Option`, `Either` and `EitherT` monads. * * @since 0.1.4 */ export declare function retrying( policy: RetryPolicy, action: (status: RetryStatus) => ReaderTask, check: (a: A) => boolean ): ReaderTask