export function encodeError(error: ExtendedError): EncodedError; export function decodeError(error: EncodedError): Error; /** * Properties added by err-code library */ export type EncodedError = Error | ErrorData; export type ErrorExtension = { code?: string | undefined; detail?: string | undefined; }; export type ExtendedError = Error & ErrorExtension; export type ErrorData = { name: string; message: string; stack: string | undefined; code: string | undefined; detail: string | undefined; }; //# sourceMappingURL=error.d.ts.map