import type { DependencyLazyTrigger, EcoComponentScriptEntry } from '../../types/public-types.js'; import type { AssetDefinition } from '../../services/assets/asset-processing-service/index.js'; type LazyScriptRef = { lazyKey: string; fallbackUrl?: string; }; /** * Lazy scripts grouped by one trigger declaration. */ export type LazyGroup = { lazy: DependencyLazyTrigger; scripts: LazyScriptRef[]; }; /** * Callback used to record one normalized lazy-script registration. */ export type RegisterLazyScript = (input: { lazy: DependencyLazyTrigger; lazyKey: string; fallbackUrl?: string; }) => void; type CollectLazyEntriesOptions = { scriptEntries: Array; componentFile: string; componentDir: string; integrationName: string; dependencies: AssetDefinition[]; lazyDependencyKeys: Set; registerLazyScript: RegisterLazyScript; resolveDependencyPath: (componentDir: string, pathUrl: string) => string; resolveLazyScripts: (componentDir: string, scripts: string[]) => string; createModuleScriptAttributes: (attributes?: Record) => Record; createEcopagesJsxLazyEntryName: (integrationName: string, key: string) => string; pushUniqueDependency: (keys: Set, key: string, dependencies: AssetDefinition[], dependency: AssetDefinition) => boolean; getLazyScriptMissingSrcMessage: () => string; isEcopagesJsxIntegration: (integrationName: string) => boolean; }; /** * Collects lazy script dependency entries and emits their hidden bundle inputs. * * This helper also reports the trigger-to-script relationship back to the caller so * later stages can build the lazy-trigger manifest without reparsing dependency config. */ export declare function collectLazyScriptEntries(options: CollectLazyEntriesOptions): void; export {};