import { FailingFunction, NoirCallStack, SimulationError } from '@aztec/circuit-types'; /** * An error that occurred during the execution of a function. */ export declare class ExecutionError extends Error { /** * The function that failed. */ failingFunction: FailingFunction; /** * The noir call stack of the function that failed. */ noirCallStack?: NoirCallStack | undefined; constructor(message: string, /** * The function that failed. */ failingFunction: FailingFunction, /** * The noir call stack of the function that failed. */ noirCallStack?: NoirCallStack | undefined, options?: ErrorOptions); } /** * Traverses the cause chain of an error. * @param error - The error to start from. * @param callback - A callback on every error, including the first one. */ export declare function traverseCauseChain(error: Error, callback: (error: Error) => void): void; /** * Creates a simulation error from an error chain generated during the execution of a function. * @param error - The error thrown during execution. * @returns - A simulation error. */ export declare function createSimulationError(error: Error): SimulationError; //# sourceMappingURL=errors.d.ts.map