export function createFunction(value: any): any; export function createResolved(module: any, type: any, config: any, interpreter: any): { type: any; config: any; interpreter: any; io: any; run: (code: any, ...args: any[]) => any; runAsync: (code: any, ...args: any[]) => any; runEvent: (...args: any[]) => any; }; export function createOverload(module: any, name: any, before: any, after: any): void; export const js_modules: unique symbol; export const JSModules: Map; export function registerJSModules(type: any, module: any, interpreter: any, modules: any): void; export function importJS(source: any, name: any): Promise; export function importCSS(href: any): Promise; export function isCSS(source: any): boolean; export function isSync(element: any): boolean; import IDBMapSync from '@webreflection/idb-map/sync'; /** @type {(tpl: string | TemplateStringsArray, ...values:any[]) => string} */ export const dedent: (tpl: string | TemplateStringsArray, ...values: any[]) => string; /** @type {(value:string) => string} */ export const unescape: (value: string) => string; /** * Notify the main thread about element "readiness". * @param {HTMLScriptElement | HTMLElement} target the script or custom-type element * @param {string} type the custom/type as event prefix * @param {string} what the kind of event to dispatch, i.e. `ready` or `done` * @param {boolean} [worker = false] `true` if dispatched form a worker, `false` by default if in main * @param {globalThis.CustomEvent} [CustomEvent = globalThis.CustomEvent] the `CustomEvent` to use */ export function dispatch(target: HTMLScriptElement | HTMLElement, type: string, what: string, worker?: boolean, CE?: { new (type: string, eventInitDict?: CustomEventInit): CustomEvent; prototype: CustomEvent; }): void; export const isArray: (arg: any) => arg is any[]; export const assign: { (target: T, source: U): T & U; (target: T, source1: U, source2: V): T & U & V; (target: T, source1: U, source2: V, source3: W): T & U & V & W; (target: object, ...sources: any[]): any; }; export const create: { (o: object | null): any; (o: object | null, properties: PropertyDescriptorMap & ThisType): any; }; export const defineProperties: (o: T, properties: PropertyDescriptorMap & ThisType) => T; export const defineProperty: (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T; export const entries: { (o: { [s: string]: T; } | ArrayLike): [string, T][]; (o: {}): [string, any][]; }; export const all: { (values: Iterable>): Promise[]>; (values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; }; export const resolve: { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; }; export function absoluteURL(path: any, base?: string): string; export function fixedRelative(path: any): any; export function nodeInfo(node: any, type: any): { id: any; tag: any; }; export { IDBMapSync };