import type { z } from 'zod'; import type { FixRefDeletionResult } from './fix-ref-deletions.js'; import type { ResolvedZodRefPayload } from './types.js'; export interface FixDefinitionRefsOptions { /** Ref payload from the previous definition version, for detecting expression renames. */ oldRefPayload?: ResolvedZodRefPayload; } /** * Fixes expression renames and dangling references in a single pass. * * Expression renames use the OLD definition (via `oldRefPayload`) to resolve * entity references — expressions still contain old names like `model.title`, * which can only be resolved against the definition where those names exist. * The new entity names are then used to detect what was renamed. * * @param schema - The project definition Zod schema * @param value - The definition after auto-fixes * @param options - Optional old ref payload for rename detection * @returns The fixed definition with ref payload */ export declare function fixDefinitionRefs(schema: T, value: unknown, options?: FixDefinitionRefsOptions): FixRefDeletionResult>; //# sourceMappingURL=fix-definition-refs.d.ts.map