/**
 * 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 {string | (() => Promise<?>)} stackOrCallback - Stack string or callback.
 * @param {(() => Promise<?>)} [callback] - Callback to execute.
 * @returns {Promise<?>} - Resolves with value.
 */
export function withTrackedStack(stackOrCallback: string | (() => Promise<unknown>), callback?: (() => Promise<unknown>)): Promise<unknown>;
//# sourceMappingURL=with-tracked-stack.d.ts.map