import { RetryPolicy } from 'cockatiel'; import { Context } from 'egg'; export declare const notifyPolicy: RetryPolicy; export declare const runWithRetryV2: (ctx: Context, fn: () => T | Promise, logPrefix: string, retryPolicy?: RetryPolicy) => Promise; export declare const runInBackgroundWithRetryV2: (ctx: Context, fn: () => T | Promise, logPrefix: string, retryPolicy?: RetryPolicy, logError?: boolean) => void;