import type { Data, Node as UnistNode } from "unist";
import type { Test } from "unist-util-is";
import type { BuildReplacer } from "./unist-util-replace.types.js";
/**
 * Replace nodes in a tree given a test and a replacement function.
 *
 * @param tree - Root node of the tree to visit.
 * @param is - Test to check if a node should be replaced.
 * @param replacement - Function to build the replacement node.
 */
export declare function replace<Tree extends UnistNode<Data>, Check extends Test>(tree: Tree, is: Check, replacement: BuildReplacer<Tree, Check>): void;
