/**
 * Runs add tracked stack to error.
 * @param {Error} error - Error to annotate with a tracked stack.
 */
export function addTrackedStackToError(error: Error): void;
/**
 * Runs with tracked stack.
 * @param {(() => Promise<?>) | string} arg1 - Arg1.
 * @param {(() => Promise<?>) | Error} [arg2] - Arg2.
 * @returns {Promise<?>} - Resolves with the callback result.
 */
export function withTrackedStack(arg1: (() => Promise<unknown>) | string, arg2?: (() => Promise<unknown>) | Error): Promise<unknown>;
//# sourceMappingURL=with-tracked-stack-async-hooks.d.ts.map