import type { AnyElysia } from 'elysia'; import type { Range } from './utils/types'; export declare class EdenFetchError extends Error { status: Status; value: Value; constructor(status: Status, value: Value); } export declare class EdenFatalError extends Error { static throw(): EdenFatalError; constructor(); } export type MapError> = [ { [K in keyof T]-?: K extends ErrorRange ? K : never; }[keyof T] ] extends [infer A extends number] ? { [K in A]: EdenFetchError; }[A] : false; export type ErrorRange = Range<300, 599>; /** * Type representing any error-like object that can be thrown by Eden client operations. * This includes EdenFetchError instances with any status code and value. * * @template _T - The Elysia app type (reserved for future use with route-specific error types) */ export type EdenClientErrorLike<_T extends AnyElysia = AnyElysia> = EdenFetchError | Error; export declare const ERROR_SYMBOL: unique symbol; export type TypeError = TMessage & { _: typeof ERROR_SYMBOL; }; //# sourceMappingURL=errors.d.ts.map