@lynx-js/web-core
Version:
This is an internal experimental package, do not use
17 lines (16 loc) • 567 B
TypeScript
import { MainThreadServerContext } from '../wasm.js';
import type { ElementPAPIs } from '../../types/index.js';
export type SSRBinding = {
ssrResult: string;
};
export declare function createElementAPI(mtsBinding: SSRBinding, styleInfo: Uint8Array | undefined, viewAttributes: string, config: {
enableCSSSelector: boolean;
defaultOverflowVisible: boolean;
defaultDisplayLinear: boolean;
transformVW: boolean;
transformVH: boolean;
transformREM: boolean;
}): {
globalThisAPIs: ElementPAPIs;
wasmContext: MainThreadServerContext;
};