import type { RuntimeFormula } from '../runtime-state.js';
import type { ParsedCompiledFormula } from './formula-binding-direct-descriptors.js';
export declare function tryRewriteSimpleDirectScalarFormulaSourcePreservingBinding(existing: RuntimeFormula | undefined, definedNameCount: number, source: string, rewriteCompiled: (compiled: ParsedCompiledFormula) => boolean): boolean;
