import type { DummyAppendMemoryMap, StatisticAppendProvider } from './file-provider'; /** * Requires source information to be attached on parsing! *
* Returns the content of the node (i.e., the text content excluding the children)
*/
export declare function extractNodeContent(node: Node): string;
/** by default, we do not write to anything */
export declare let statisticsFileProvider: StatisticAppendProvider;
/**
* Make the statistics write to a given output directory.
*/
export declare function initFileProvider(outputDirectory: string): void;
/**
* Either ignore the statistics or write them to a given map (e.g., for testing).
*
* @param map - The map to write to, will not persist calls if no map is given
*/
export declare function initDummyFileProvider(map?: DummyAppendMemoryMap): void;
/**
* Format used to dump each entry of a feature during collection.
*/
export type StatisticsOutputFormat