import type { StoreArrayFieldPlan, StoreFieldPlan, StoreMethodPlan } from './cpp-stores.js'; import type { FieldAccess } from './cpp-field-access.js'; import type { GeaIrComponent, GeaIrConstant, GeaIrConstantObjectArrayItem, GeaIrExpressionObjectField, GeaIrKeyedListPayload, GeaIrSlot, GeaIrStoreValueShape } from './types.js'; export interface HtmlRoot { tag: string; className?: string; attrs?: Record; } export interface LoweredSlots { stateType: string; deps: string[]; fields: StoreFieldPlan[]; fieldReadPlan: LoweredFieldReadPlan; staticLines: string[]; lines: string[]; } export interface LoweredFieldReadPlan { stateType: string; fields: LoweredFieldRead[]; } export interface LoweredFieldRead { fieldName: string; fieldType: string; localName: string; readerName: string; } export interface LoweredRowSlots { lines: string[]; patches: LoweredRowPatch[]; unconditionalPatches: string[]; itemFieldNames: string[]; storeFields: StoreFieldPlan[]; treeLines: string[]; eventLines: string[]; } export interface LoweredRowPatch { itemFieldName: string; lines: string[]; } export type ConstantMap = ReadonlyMap; export declare function storeGlobalIsTyped(globalName: string, storeFields: StoreFieldPlan[]): boolean; export declare function attributeLines(varName: string, root: HtmlRoot, slots?: GeaIrSlot[]): string[]; export declare function rootSetupLines(varName: string, slots: GeaIrSlot[], storeFields?: StoreFieldPlan[], storeMethods?: StoreMethodPlan[], fieldAccess?: FieldAccess, rootTag?: string, constants?: ConstantMap, disposerVar?: string): string[] | null; export declare function eventSetupLines(varName: string, slot: GeaIrSlot, storeFields?: StoreFieldPlan[], storeMethods?: StoreMethodPlan[], fieldAccess?: FieldAccess, rootTag?: string, constants?: ConstantMap, disposerVar?: string): string[] | null; export declare function rootSetupSlotsSupported(slots: GeaIrSlot[], storeFields?: StoreFieldPlan[], storeMethods?: StoreMethodPlan[], constants?: ConstantMap): boolean; export declare function isRootSetupSlot(slot: GeaIrSlot, constants?: ConstantMap): boolean; export declare function childForMount(slot: GeaIrSlot, components: GeaIrComponent[]): GeaIrComponent | null; export declare function mountSlotTag(slot: GeaIrSlot): string | null; export declare function mountSlotAttrs(slot: GeaIrSlot): string[]; export declare function parseMountAttr(code: string): { name: string; expr: string; } | null; export declare function mountSlotStyleSlot(slot: GeaIrSlot): GeaIrSlot | null; export declare function mountSlotImageSourceLines(varName: string, slot: GeaIrSlot): string[] | null; export declare function fieldNameForSlot(slot: GeaIrSlot): string | null; export declare function keyedListPayload(slot: GeaIrSlot): GeaIrKeyedListPayload | null; export declare function keyedListKeyExpression(payload: GeaIrKeyedListPayload, itemName: string, field: StoreArrayFieldPlan): string; export declare function lowerSlots(slots: GeaIrSlot[], storeFields: StoreFieldPlan[], constants?: ConstantMap): LoweredSlots | null; export declare function parseHtmlRoot(html: string): HtmlRoot | null; export declare function lowerRowSlots(slots: GeaIrSlot[], itemName: string, field: StoreArrayFieldPlan, constants?: ConstantMap, pathVars?: Map, storeFields?: StoreFieldPlan[], storeMethods?: StoreMethodPlan[]): LoweredRowSlots; export declare function parseExpressionObjectFields(expr: string): GeaIrExpressionObjectField[] | null; export declare function constantExpression(name: string, constants: ConstantMap): { expr: string; shape: GeaIrStoreValueShape; } | null; export declare function objectArrayConstant(name: string | undefined, constants: ConstantMap): GeaIrConstantObjectArrayItem[] | null; export declare function imageSrcAssetIdExpression(relPath: string): string; export declare function unique(values: T[]): T | null; export declare function fieldReadPlanForLoweredSlots(stateType: string, fields: StoreFieldPlan[]): LoweredFieldReadPlan | null; export declare function fieldReadLines(plan: LoweredFieldReadPlan, storeExpression?: string): string[]; export declare function attributeSlotLines(varName: string, slot: GeaIrSlot, constants?: ConstantMap): string[] | null; export declare function slotAttrName(slot: GeaIrSlot): string | null; export declare function lowerTextSlot(slot: GeaIrSlot, storeFields: StoreFieldPlan[]): { stateType: string; deps: string[]; fields: StoreFieldPlan[]; expr: string; } | null; export declare function storeFieldLocalName(fieldName: string): string; export declare function stringLiteralValue(expr: string): string | null;