import type { CfProperties, ExecutionContext, IncomingRequestCfProperties } from '@cloudflare/workers-types';
import type { CloudflareOptions } from './client';
interface RequestHandlerWrapperOptions {
    options: CloudflareOptions;
    request: Request<unknown, IncomingRequestCfProperties<unknown> | CfProperties<unknown>>;
    context: ExecutionContext | undefined;
    /**
     * If true, errors will be captured, rethrown and sent to Sentry.
     * Otherwise, errors are rethrown but not captured.
     *
     * You most likely don't want to set this to `false`, if you use `wrapRequestHandler` directly.
     * This is primarily meant as an escape hatch for higher-level SDKs relying on additional error
     * capturing mechanisms where this wrapper captures errors too early or too generally.
     *
     * @default true
     */
    captureErrors?: boolean;
}
/**
 * Wraps a cloudflare request handler in Sentry instrumentation
 */
export declare function wrapRequestHandler(wrapperOptions: RequestHandlerWrapperOptions, handler: (...args: unknown[]) => Response | Promise<Response>): Promise<Response>;
export {};
//# sourceMappingURL=request.d.ts.map