import { JsonError, ErrorData } from "../types"; export type CreateError = (data: T) => JsonError; export declare function createError(name: string, data: T): JsonError; /** * Creates a custom Error Creator. Its messages are defined by strings-object @see config/strings.ts * * @param name - id of error (camelcased) * @return error constructor function */ export declare function createCustomError(name: string): CreateError;