import { type VariableNode, type VariableNodeInput } from '../actions/InsertVariable/types';
/**
 * Normalizes legacy variable shapes ({ id, token?, children? }) into
 * the canonical shape ({ key, children: [] }).
 */
export declare const normalizeVariables: (nodes: VariableNodeInput[]) => VariableNode[];
/**
 * Recursively builds a map of { "parent.child": "Parent - Child" }
 * from the variable tree. Tokens are derived by concatenating keys
 * along the path (e.g. key "collaborator" → key "firstName" = "collaborator.firstName").
 */
export declare const buildTokenLabelMap: (variables: VariableNodeInput[], parentKey?: string, parentLabel?: string) => Record<string, string>;
export declare const prepareForEditor: (html: string, variables: VariableNodeInput[]) => string;
export declare const prepareForBackend: (html: string) => string;
