4cabb92ef76dd5f61a7da025d99a4cc86776562c.svn-base 712 Bytes
/// <reference types="node" />
import { RegisterOptions } from './index';
export declare function registerAndCreateEsmHooks(opts?: RegisterOptions): {
    resolve: (specifier: string, context: {
        parentURL: string;
    }, defaultResolve: any) => Promise<{
        url: string;
    }>;
    getFormat: (url: string, context: {}, defaultGetFormat: any) => Promise<{
        format: "json" | "module" | "builtin" | "commonjs" | "dynamic" | "wasm";
    }>;
    transformSource: (source: string | Buffer, context: {
        url: string;
        format: "json" | "module" | "builtin" | "commonjs" | "dynamic" | "wasm";
    }, defaultTransformSource: any) => Promise<{
        source: string | Buffer;
    }>;
};