/** Framework error with optional client-safe message exposure flag. */
export default class VelociousError extends Error {
    /**
     * Runs safe.
     * @param {string} message - Error message.
     * @param {object} [args] - Options.
     * @param {?} [args.cause] - Error cause.
     * @param {string} [args.code] - Optional error code.
     * @returns {VelociousError} - Client-safe error instance.
     */
    static safe(message: string, args?: {
        cause?: unknown;
        code?: string | undefined;
    }): VelociousError;
    /**
     * Runs constructor.
     * @param {string} message - Error message.
     * @param {object} [args] - Options.
     * @param {?} [args.cause] - Error cause.
     * @param {string} [args.code] - Optional error code.
     * @param {boolean} [args.safeToExpose] - Whether the message is safe to return to clients.
     */
    constructor(message: string, args?: {
        cause?: unknown;
        code?: string | undefined;
        safeToExpose?: boolean | undefined;
    });
    code: string | undefined;
    safeToExpose: boolean;
}
//# sourceMappingURL=velocious-error.d.ts.map