import type { SerializedResolvedConfig, SerializedUserOptions } from "../types.js";
import type { ModuleInfo } from "rollup";
import type { MessagePort } from "node:worker_threads";
import type { LoadHook, ResolveHook } from "node:module";
export type LoaderOptions = {
    id: string;
    resolveDependencies?: boolean;
    format?: string;
    conditions?: string[];
    importAssertions?: Record<string, unknown>;
    importAttributes?: Record<string, unknown>;
    source: string;
};
export type LoaderFunction = (options: LoaderOptions) => Promise<ModuleInfo>;
export declare function initialize(data: {
    id: string;
    port: MessagePort;
    userOptions: SerializedUserOptions;
    resolvedConfig: SerializedResolvedConfig;
}): void;
export declare const loadHook: LoadHook;
export declare const resolve: ResolveHook;
export { loadHook as load };
//# sourceMappingURL=react-loader.d.ts.map