UNPKG

donobu

Version:

Create browser automations with an LLM agent and replay them as Playwright scripts.

25 lines 913 B
import { RequestContext } from '../models/RequestContext'; export declare class RequestContextHolder { private static readonly requestContextStorage; private fallbackContext; constructor(); /** * Returns the current request context if one exists for this async context, * otherwise returns the fallback context. */ get(): RequestContext; /** * Sets the context-local request context for this request. * Should be called at the start of handling a request. */ setForCurrentContext(context: RequestContext): void; /** * Clears the context-local request context after a request is finished. */ clearForCurrentContext(): void; /** * Sets a global fallback request context to use when no request context is available. */ setFallbackContext(context: RequestContext): void; } //# sourceMappingURL=RequestContextHolder.d.ts.map