import { Response } from "express"; import { ErrorCode } from "jm-castle-types"; import { Persistence } from "../persistence/Types.mjs"; export declare const handleError: (res: Response, errorCode: ErrorCode, error: string, errorDetails?: Record) => Response>; export declare const handleErrorOrUndefinedResult: (res: Response, result: unknown | undefined, errorCode: ErrorCode | undefined, error: string | undefined, errorDetails?: Record) => boolean; export declare const withDefaultPersistence: (res: Response, cb: (persistence: Persistence) => Promise) => Response>;