import type { EmitModule, GeaIrBundleV1, GeaIrConstant } from "./types.js"; export declare function generateCppIrSource(ir: GeaIrBundleV1, irPath: string | null, modules: EmitModule[], microtasksNamespace?: string, directCanvas?: boolean): string; export declare function irUsesCanvas(ir: GeaIrBundleV1, modules?: readonly EmitModule[]): boolean; export declare function generateCppIrNamespaceSource(ir: GeaIrBundleV1, modules: readonly EmitModule[], options?: { includeDomInterop?: boolean; directCanvas?: boolean; }): string; export declare function generateCppIrMountedSource(ir: GeaIrBundleV1, knownGlobalAccessorTypes?: ReadonlyMap): string; export declare function generateCppIrAssetForwardDeclarations(ir: GeaIrBundleV1): string; export declare function collectIrConstants(ir: GeaIrBundleV1): ReadonlyMap; /** * What the consuming compiler's value model provides. * * geatsc v1 always has its boxed carrier (`gea_cpp_value`) and its * single-precision scalar (`gea_f32`), and the helpers below carry overloads * that exist only to accept them. A consumer whose scalars are plain `double` * and which never boxes -- geatsc -- has neither type in the translation * unit, so those four overloads would name an undeclared type. Passing * `boxedValueModel: false` omits them and forward-declares `gea_f32`, which is * all the surviving `std::is_same_v<..., gea_f32>` tests need. * * Everything else in the block is unconditional: the dispatch it encodes -- * RRGGBBAA colours to native pixels, the typed-array pointer path, the * string-versus-colour fill -- is what the ENGINE requires of any caller, and * a second copy of it in another compiler would be a second authority over the * same question. */ export interface CanvasInteropOptions { readonly boxedValueModel?: boolean; } export declare function directCanvasInteropSource(usesCanvas: boolean, options?: CanvasInteropOptions): string[];