import type { DefinitionEntity, ResolvedZodRefPayload } from './types.js'; export interface ApplyExpressionRenamesResult { value: T; modified: boolean; } /** * Detects renamed entities and updates expression strings accordingly. * * Uses the OLD definition/refPayload to resolve entity references (since * expressions still contain old names like `model.title`), then compares * old vs new entity names to detect renames and apply position-based * string replacements on the NEW definition. * * @param newDefinition - The new definition value (where expressions will be updated) * @param newEntities - Entities from the new definition (with new names) * @param oldRefPayload - The ref payload from the old definition (has old expressions, entities, and definition) * @returns The (possibly modified) definition and whether any renames were applied */ export declare function applyExpressionRenames(newDefinition: T, newEntities: readonly DefinitionEntity[], oldRefPayload: ResolvedZodRefPayload): ApplyExpressionRenamesResult; //# sourceMappingURL=fix-expression-renames.d.ts.map