/**
 * Authenticated fetch helper for cookie-based session auth.
 *
 * Wraps the standard `fetch` with `credentials: 'include'` so cookies
 * are sent with every request. Use for all API calls in apps
 * that rely on `@fuzdev/fuz_app` session middleware.
 *
 * @module
 */
/**
 * Fetch with credentials included (sends cookies).
 */
export declare const ui_fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
/**
 * Safely extract an error message from a non-ok response.
 *
 * Handles responses with non-JSON bodies (e.g. HTML 404 pages)
 * that would throw on `response.json()`.
 *
 * @param fallback - message when no `.error` field is found
 */
export declare const parse_response_error: (response: Response, fallback?: string) => Promise<string>;
//# sourceMappingURL=ui_fetch.d.ts.map