import type { TectonRuntimeConfig } from '../types/config'; import type { TestOptions, HierarchyNode } from '../types'; import type { TectonPlatformControls, TectonPlatformInputAPI } from '../types/setup'; /** * Initializes the Tecton platform with the provided configuration and control handlers. * Sets up all capabilities, actions, sources, outlets, and internal services for feature communication. * * @param tectonConfig - The runtime configuration containing feature manifests and settings * @param platformControlBus - Platform control bus with handler implementations for capabilities * @param contextHierarchy - Optional hierarchy of context nodes for feature resolution * @param testOptions - Optional testing configuration for test environments * @returns Platform input API for managing config, params, and teardown * * @example * ```typescript * const platformAPI = init(tectonConfig, platformControlBus); * * // Update params when they change. URL keys must be `.`; * // bare keys will not route to any module. * platformAPI.tectonParamsChanged({ * changedParams: { 'accounts.main.useZone': 'true' }, * currentParams: { 'accounts.main.useZone': 'true' }, * }); * * // Clean up when done * platformAPI.teardown(); * ``` */ export declare function init(tectonConfig: TectonRuntimeConfig, platformControlBus: TectonPlatformControls, contextHierarchy?: HierarchyNode, testOptions?: TestOptions): TectonPlatformInputAPI; /** * Adapts and normalizes the Tecton configuration by populating default values. * Ensures each module has a routeConfig, resolves relative URLs, and replaces * `{featureName}` and `{moduleName}` placeholders in module URLs. * * @param tectonConfig - The runtime configuration to adapt (mutated in place) */ export declare function adaptConfig(tectonConfig: TectonRuntimeConfig): void; //# sourceMappingURL=init.d.ts.map