/** * Runs add tracked stack to error. * @param {Error} error - Error to annotate with a tracked stack. */ declare 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. */ declare function withTrackedStack(arg1: (() => Promise>) | string, arg2?: (() => Promise>) | Error): Promise>; export { addTrackedStackToError, withTrackedStack }; //# sourceMappingURL=with-tracked-stack-async-hooks.d.ts.map