@lynx-js/web-core
Version:
This is an internal experimental package, do not use
22 lines (21 loc) • 808 B
TypeScript
/**
* Copyright (c) 2025 The Lynx Authors. All rights reserved.
* Licensed under the Apache License Version 2.0 that can be found in the
* LICENSE file in the root directory of this source tree.
*/
import type * as CSS from '@lynx-js/css-serializer';
import type { ElementTemplateData } from '../types/index.js';
export type TasmJSONInfo = {
styleInfo: Record<string, CSS.LynxStyleNode[]>;
manifest: Record<string, string>;
cardType: string;
appType: string;
pageConfig: Record<string, unknown>;
lepusCode: Record<string, string>;
customSections: Record<string, {
type?: 'lazy';
content: string | Record<string, unknown>;
}>;
elementTemplates: Record<string, ElementTemplateData>;
};
export declare function encode(tasmJSON: TasmJSONInfo): Uint8Array;