import type { Scope } from '@sentry/core';
/**
 * @param fn function to run
 * @returns function which runs in the newly created domain or in the existing one
 */
export declare function domainify<A extends unknown[], R>(fn: (...args: A) => R): (...args: A) => R | void;
/**
 * @param source function to be wrapped
 * @param wrap wrapping function that takes source and returns a wrapper
 * @param overrides properties to override in the source
 * @returns wrapped function
 */
export declare function proxyFunction<A extends any[], R, F extends (...args: A) => R>(source: F, wrap: (source: F) => F, overrides?: Record<PropertyKey, unknown>): F;
/**
 * Marks an event as unhandled by adding a span processor to the passed scope.
 */
export declare function markEventUnhandled(scope: Scope, type: string): Scope;
/**
 * Resolves the name of the currently executing cloud function.
 *
 * `FUNCTION_TARGET` ("the function to be executed") is set by GCP for every deployed function, and
 * by the functions-framework when running locally, where `K_SERVICE` is absent. `K_SERVICE` is the
 * Cloud Run service the function runs as; the two differ whenever the entry point is named
 * separately from the service, as in `gcloud run deploy my-service --function myHandler`.
 */
export declare function getFunctionName(): string | undefined;
//# sourceMappingURL=utils.d.ts.map