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