import type { Source } from './loaders.js';
export type LoadErrorHandling = 'throw' | 'aggregate' | 'return';
export declare function toLoadError(error: unknown): Error;
export declare function shouldCollectLoadErrors(errorHandling?: LoadErrorHandling): boolean;
export declare function createFailedSource(location: string | undefined, error: unknown): Source;
