///
import { ActionProcessor, Connection } from "actionhero";
declare const namespace = "errors";
declare module "actionhero" {
interface ActionheroConfigInterface {
[namespace]: ReturnType;
}
}
export declare const DEFAULT: {
errors: () => {
_toExpand: boolean;
reportUnknownActions: boolean;
serializers: {
servers: {
web: (error: NodeJS.ErrnoException) => string | NodeJS.ErrnoException;
websocket: (error: NodeJS.ErrnoException) => string | NodeJS.ErrnoException;
specHelper: (error: NodeJS.ErrnoException) => string | NodeJS.ErrnoException;
};
actionProcessor: (error: NodeJS.ErrnoException) => {
errorFields: {
error: string;
};
logLevel: import("actionhero").ActionheroLogLevel;
};
};
invalidParams: (data: ActionProcessor, validationErrors: Array) => string | Error;
missingParams: (data: ActionProcessor, missingParams: string[]) => string;
unknownAction: (data: ActionProcessor) => string;
unsupportedServerType: (data: ActionProcessor) => string;
serverShuttingDown: (data: ActionProcessor) => string;
tooManyPendingActions: (data: ActionProcessor) => string;
genericError(data: ActionProcessor, error: NodeJS.ErrnoException): Promise;
fileNotFound: (connection: Connection) => string;
fileNotProvided: (connection: Connection) => string;
fileReadError: (connection: Connection, error: NodeJS.ErrnoException) => string;
verbNotFound: (connection: Connection, verb: string) => string;
verbNotAllowed: (connection: Connection, verb: string) => string;
connectionRoomAndMessage: (connection: Connection) => string;
connectionNotInRoom: (connection: Connection, room: string) => string;
connectionAlreadyInRoom: (connection: Connection, room: string) => string;
connectionRoomHasBeenDeleted: (room: string) => string;
connectionRoomNotExist: (room: string) => string;
connectionRoomExists: (room: string) => string;
connectionRoomRequired: () => string;
};
};
export {};