type ActivationFailureHandler = (error: unknown) => void; /** * Run an async callback at most once, falling back when context activation fails. * * Context providers are synchronous callback invokers by contract. Once the * application callback has been invoked, its promise is authoritative: a * provider-owned replacement (including a promise that never settles) must not * delay or replace application work. */ export declare function runAsyncWithContextFallback(activate: (callback: () => Promise) => Promise, callback: () => Promise, onActivationFailure?: ActivationFailureHandler): Promise; /** Run a sync callback at most once, falling back when context activation fails. */ export declare function runSyncWithContextFallback(activate: (callback: () => T) => T, callback: () => T, onActivationFailure?: ActivationFailureHandler): T; export {}; //# sourceMappingURL=context-callback.d.ts.map