import { type ScopeDefinition, type RequestAPI } from './scope'; export interface RequestAPISetup extends RequestAPI { origin?: string; environment?: string | null; waitUntil?(promise: Promise): void; } type RequestContextFactory = (...args: any[]) => Partial; type RequestScopeRunner = (fn: (...args: Parameters) => Promise, ...args: Parameters) => Promise; export declare function createRequestScope(scopeDefinition: ScopeDefinition, makeRequestAPISetup: F): RequestScopeRunner; export {};