function doc(root_specifier, include_all, load, maybe_resolve, maybe_import_map, print_import_map_diagnostics) {
    const ptr0 = passStringToWasm0(root_specifier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
    const len0 = WASM_VECTOR_LEN;
    var ptr1 = isLikeNone(maybe_import_map) ? 0 : passStringToWasm0(maybe_import_map, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
    var len1 = WASM_VECTOR_LEN;
    const ret = wasm.doc(ptr0, len0, include_all, addHeapObject(load), isLikeNone(maybe_resolve) ? 0 : addHeapObject(maybe_resolve), ptr1, len1, print_import_map_diagnostics);
    return takeObject(ret);
}
@param {string} root_specifier
@param {boolean} include_all
@param {Function} load
@param {Function | undefined} maybe_resolve
@param {string | undefined} maybe_import_map
@param {boolean} print_import_map_diagnostics
@returns {Promise<any>}