import type { H3Event } from 'h3'; interface AssetsBinding { fetch: (request: string | Request, init?: RequestInit) => Promise; } /** * Access the Cloudflare Workers ASSETS binding if available. * * Requires either: * - `nitro.cloudflare.deployConfig: true` (generates wrangler.json with ASSETS) * - A wrangler.toml/json with `[assets]` configured */ export declare function getCloudflareAssets(event: H3Event): AssetsBinding | undefined; /** * Fetch a path directly from the CF Workers ASSETS binding. * * Prefer this over same-origin subrequests on Workers: it hits the static asset * handler without billing a subrequest and without re-running the Worker's * middleware chain. * * Returns `undefined` when no ASSETS binding is available or the asset doesn't * exist (letting callers fall through to other resolution strategies). */ export declare function tryCloudflareAssetsFetch(event: H3Event, path: string, signal?: AbortSignal): Promise; export {};