import type { TreeNode, TreeNodeContext } from './types';
export declare function createTreeIterator<TValues, TTreeNode>(tree: TreeNode<TValues>, transformer: ({ node, context, }: {
    node: Omit<TreeNode<TValues>, 'children'>;
    context: TreeNodeContext;
}) => TTreeNode, context?: TreeNodeContext): Generator<TTreeNode>;
//# sourceMappingURL=tree-iterator.d.ts.map