/** * Shared server utilities used by both Express and Analog server adapters. * Extracted to avoid duplication between server-express and server-analog. */ /** * Sanitize error messages to prevent leaking internal details (SQL, file paths, etc.). * Returns the original message if it appears safe, otherwise returns the fallback. */ export declare function sanitizeErrorMessage(error: unknown, fallback: string): string; /** * Sanitize a filename for use in Content-Disposition headers. * Strips any characters that could enable header injection. */ export declare function sanitizeFilename(name: string): string; /** * Parses the `where` query parameter. * Handles both JSON string format (?where={"slug":{"equals":"home"}}) * and pre-parsed object format from h3/qs/Express. */ export declare function parseWhereParam(raw: unknown): Record | undefined;