import type { GeaIrConstant, GeaIrStore, GeaIrStoreExpr, GeaIrStoreLocalType } from './types.js'; import type { StoreFieldPlan, StoreMethodPlan } from './cpp-stores.js'; export interface StoreMethodLowerContext { store: GeaIrStore; storeFields: StoreFieldPlan[]; storeMethods: StoreMethodPlan[]; params: Set; paramHints: Map; topLevelFunctionNames: Map; topLevelValueNames: Map; locals: Set; constants: Map; localTypes: Map; tempIndex: number; arrayElementAliases: Map; arrayItemAliases: Map; arrayItemFieldAliases: Map; dirtyArrayFields: Set; needsFieldSet: boolean; needsArrayLengthSet: boolean; needsArrayItemSet: boolean; needsDynamicArrayItemSet: boolean; needsArrayPush: boolean; needsArrayUnshift: boolean; needsArraySplice: boolean; needsArrayPop: boolean; needsArrayShift: boolean; } export type StoreMethodHint = 'any' | 'number' | 'string' | 'boolean'; export interface StoreArrayElementAlias { arrayField: string; itemExpression: string; indexExpression: string; } export interface StoreArrayElementAliasField { alias: StoreArrayElementAlias; itemField: string; } export declare function arrayElementAliasFieldTarget(context: StoreMethodLowerContext, expr: GeaIrStoreExpr): StoreArrayElementAliasField | null; export declare function arrayItemAliasKey(arrayFieldName: string, indexName: string): string; export declare function arrayItemFieldAliasKey(arrayFieldName: string, indexName: string, itemFieldName: string): string; export declare function constantMap(store: GeaIrStore, globalConstants?: ReadonlyMap): Map; export declare function fieldHint(store: GeaIrStore, fieldName: string): StoreMethodHint; export declare function arrayItemFieldHint(store: GeaIrStore, arrayFieldName: string, itemFieldName: string): StoreMethodHint; export declare function typedArrayItemFieldAccess(store: GeaIrStore, arrayFieldName: string, itemFieldName: string, itemExpression: string): string | null; export declare function localArrayTypeRef(context: StoreMethodLowerContext, localName: string): string | null; export declare function localArrayCppType(context: StoreMethodLowerContext, localName: string): string | null; export declare function nextStoreMethodTemp(context: StoreMethodLowerContext, label: string): string;