import type { RemoteErrorCode, RemoteErrorDetail } from '../errors.js'; export declare class EmbeddedRuntimeError extends Error { readonly code: RemoteErrorCode; readonly retryable: boolean; readonly scope: RemoteErrorDetail['scope']; readonly detail: RemoteErrorDetail; constructor(code: RemoteErrorCode, message: string, retryable: boolean, scope: RemoteErrorDetail['scope'], options?: ErrorOptions); } export declare function embeddedError(code: RemoteErrorCode, message: string, retryable?: boolean, scope?: RemoteErrorDetail['scope'], options?: ErrorOptions): EmbeddedRuntimeError; export declare function normalizeEmbeddedError(error: unknown, operation: string, code?: RemoteErrorCode, scope?: RemoteErrorDetail['scope']): EmbeddedRuntimeError;