export type ErrorSourceSpan = {
    start: ErrorSourcePosition;
    end: ErrorSourcePosition;
};
export type ErrorSourcePosition = {
    line: number;
    column: number;
    offset: number;
};
export declare function formatErrorStack(name: string, message: string, stackFrames?: readonly string[]): string;
export declare function replaceErrorStack(error: {
    message: string;
    name: string;
    stack?: string;
}, stackFrames?: readonly string[]): void;
export declare function attachErrorSpan(error: object, span: ErrorSourceSpan | undefined): void;
export declare function attachErrorCause(error: object, cause: unknown): void;
export declare function attachWrappedErrorCause(error: object, cause: unknown): void;
export declare function materializeWrappedErrorCause(value: unknown): void;
export declare function readErrorSpan(value: unknown): ErrorSourceSpan | undefined;
export declare function readErrorCause(value: unknown): unknown;
export declare function isErrorSourceSpan(value: unknown): value is ErrorSourceSpan;
export declare function createSourceSpan(source: string, line: number, column: number, endLine: number, endColumn: number): ErrorSourceSpan;
export declare function describeThrownValue(value: unknown): string;
