import type { LoaderFn } from './hotreload.js';
/**
 * Create a LoaderFn that supports file:// URLs in Node.js.
 * Non-file schemes are delegated to the provided fallback (default: HTTP loader).
 */
export declare function createFileLoader(fallback?: LoaderFn, opts?: {
    baseDir?: string;
    maxBytes?: number;
    allowRemoteFileHosts?: string[];
}): LoaderFn;
/**
 * A ready-to-use loader that handles file:// and falls back to HTTP(S).
 */
export declare const fileLoader: LoaderFn;
