import type { Root } from 'hast';
/**
 * Counts the number of lines in a HAST tree without mutating it.
 * Uses the same logic as starryNightGutter but only returns the count.
 * @param tree - The HAST tree to count lines in
 * @returns The number of lines in the tree
 */
export declare function countLines(tree: Root): number;
export declare function starryNightGutter(tree: Root): void;