import type { Errors } from "./error";
export declare const enumify: <T extends Record<string, U>, U extends string>(x: T) => T;
export declare const ERROR_TYPE: {
    METHOD_NOT_FOUND: "METHOD_NOT_FOUND";
    DATA_NOT_FOUND: "DATA_NOT_FOUND";
    MISSING_OR_INVALID: "MISSING_OR_INVALID";
    UNKNOWN: "UNKNOWN";
};
declare type ErrorType = keyof typeof ERROR_TYPE;
declare type Error<T> = {
    type: T;
    code: number;
    stringify: Errors.ErrorStringifier;
    format: Errors.ErrorFormatter;
};
export declare const ERROR: Record<ErrorType, Error<ErrorType>>;
export {};
