import { Response } from "express";
import { HttpCodes } from "../config/http-codes";
export interface IErrors {
    [message: string]: {
        code: keyof typeof HttpCodes;
        body: string;
        override?: string;
        onError?: () => Promise<void>;
    };
}
export declare type OnError = (message: string, variables?: string[]) => Promise<void>;
export declare function _try<T>(res: Response | undefined, tryFunction: () => Promise<T>, errors?: IErrors, onError?: OnError, splitter?: string): Promise<T | boolean>;
//# sourceMappingURL=try.d.ts.map