export interface DecoratedError extends Error {
    cause?: unknown;
    context?: Record<string, unknown>;
}
export declare const SentryLiftKeysToTagsFromLoggerContext: string[];
export interface IErrorContext {
    scope?: string;
    scopeData?: Record<string, unknown>;
    loggerContext?: Record<string, unknown>;
    data?: Record<string, unknown>;
    [key: string]: unknown;
}
export declare function isError(value: unknown): value is Error;
export declare function getErrorMessage(value: unknown): string;
export declare function toError(value: unknown, cause?: unknown): Error;
export declare function tryOrErrorSync<T>(fn: () => T): T | Error;
export declare function tryOrError<T>(fn: () => T | Promise<T>): Promise<T | Error>;
export declare function setGlobalErrorReporter(reporter: (level: number, err: Error, context: IErrorContext) => void): void;
export declare function reportError(level: number, err: Error, context: IErrorContext): void;
//# sourceMappingURL=error.d.ts.map