import { type FigmaSourceNode } from "./sourceNode.js";
/** A node that survived pruning, paired with its pruned children. */
export interface PrunedNode {
    readonly source: FigmaSourceNode;
    readonly children: readonly PrunedNode[];
}
/**
 * Prune a node, returning the kept node (with kept children) or `undefined` when the node itself is
 * dropped. A node is dropped when hidden, a component master, or an empty scaffold.
 */
export declare const pruneNode: (node: FigmaSourceNode) => PrunedNode | undefined;
/** Total node count of a raw subtree (root included), used for the reduction ratio. */
export declare const countSourceNodes: (node: FigmaSourceNode) => number;
//# sourceMappingURL=prune.d.ts.map