import type { H3Event } from 'h3'; export interface CloudflareEnv { ASSETS?: { fetch: (req: Request | string) => Promise; }; } /** * Get Cloudflare environment from event context or globalThis.__env__ (for scheduled tasks) */ export declare function getCfEnv(event?: H3Event): CloudflareEnv | undefined; /** * Check if Cloudflare ASSETS binding is available */ export declare function hasAssets(event?: H3Event): boolean; /** * Fetch a public asset, preferring Cloudflare ASSETS binding when available. * Falls back to $fetch with timeout to avoid self-fetch hangs on CF Workers. */ export declare function fetchPublicAsset(event: H3Event | undefined, path: string, options?: { responseType?: 'json' | 'text' | 'arrayBuffer' | 'stream'; }): Promise;