/** * Transformation manager * * Manages transformation of sections after global dimension execution. * Handles both legacy transform functions and new hook-based transformations. * * @module execution/transformation-manager */ import type { Plugin } from "../../plugin.js"; import type { SectionData, DimensionResult, ProcessOptions } from "../../types.js"; import type { HookExecutor } from "../lifecycle/hook-executor.js"; import type { ProcessState } from "../shared/types.js"; import type { DependencyResolver } from "./dependency-resolver.js"; /** * Manages transformation of sections after global dimension execution * * Handles both: * - Legacy transform functions defined on dimension configs * - New hook-based transformSections approach */ export declare class TransformationManager { private readonly plugin; private readonly dependencyResolver; constructor(plugin: Plugin, dependencyResolver: DependencyResolver); /** * Applies transformation for a global dimension result * * Tries legacy transform first, then falls back to hook-based transform. * If sections are transformed, the section results map is reset. * * @param dimension - Dimension name * @param result - Dimension result * @param state - Process state * @param hookExecutor - Hook executor instance * @param options - Process options * @returns Transformed sections or original sections if no transformation */ applyTransformation(dimension: string, result: DimensionResult | undefined, state: ProcessState, hookExecutor: HookExecutor, options: ProcessOptions, dependencyGraph: Record): Promise; /** * Applies legacy dimension transform function * * This supports the old-style transform function defined directly * on the dimension configuration. */ private applyLegacyTransform; /** * Applies new hook-based transformation * * This uses the transformSections hook which provides more context * and flexibility for transforming sections. */ private applyHookTransform; } //# sourceMappingURL=transformation-manager.d.ts.map