type ResolveContext = { parentURL?: string; conditions: string[]; }; type Resolved = { url: string; format?: string | null; shortCircuit?: boolean; }; type NextResolve = (specifier: string, context: ResolveContext) => Resolved | Promise; type LoadContext = { format?: string | null; conditions: string[]; }; type Loaded = { format?: string | null; source?: string | ArrayBuffer | ArrayBufferView | null; shortCircuit?: boolean; }; type NextLoad = (url: string, context: LoadContext) => Loaded | Promise; /** What the runner hands this hook for ONE child. See `run-scripts.ts`. */ export interface LoadProbe { /** The script's own module URL (realpath), whatever process entry runs it. */ readonly entryURL: string; /** Written (empty) by the marker module when it evaluates: the graph linked. */ readonly loadedFile: string; /** Written with `{ format, marked }` when this hook sees the script's module. */ readonly seenFile: string; } export declare function initialize(data: LoadProbe | undefined): void; export declare function resolve(specifier: string, context: ResolveContext, nextResolve: NextResolve): Promise; export declare function load(url: string, context: LoadContext, nextLoad: NextLoad): Promise; export {}; //# sourceMappingURL=harness-resolve-hooks.d.mts.map