import { Scope } from '../components/Scope.ts';
/**
 * Error thrown when a JavaScript resource module fails to load
 */
export declare class ResourceLoadError extends Error {
    readonly filePath: string;
    readonly cause?: Error;
    constructor(filePath: string, cause?: Error);
}
/**
 * This plugin loads JavaScript files and registers their exports as resources.
 *
 * The export can be the default export and will be assigned to the root URL path.
 *
 * Otherwise, the name of the export will be used.
 *
 * After loading the JavaScript code using the secure import, it adds it to the global `resources` map.
 *
 * Once a file has been loaded it cannot be unloaded without a restart.
 *
 * Thus, this plugin only handle files as they are added (`add` event). All other events result in a restart request.
 *
 */
export declare function handleApplication(scope: Scope): Promise<void>;
