import { FlameNode } from '../renderer/FlameDataProcessor'; /** * Checks if a frame represents Node.js internal code * @param fileName The file name from the flame node * @returns true if this is a Node.js internal frame */ export declare function isNodeInternal(fileName: string | undefined): boolean; /** * Checks if a frame represents code from node_modules * @param fileName The file name from the flame node * @returns true if this is a node_modules dependency frame */ export declare function isNodeModule(fileName: string | undefined): boolean; /** * Determines if a frame should be shown when "Show App Code Only" is enabled * @param fileName The file name from the flame node * @returns true if this frame should be visible (is application code) */ export declare function shouldShowFrame(fileName: string | undefined): boolean; /** * Recursively filters a FlameNode tree to show only application code. * Filtered frames are collapsed - their values are added to their parent. * * @param node The FlameNode to filter * @param showAppCodeOnly If true, filter out Node.js internals and node_modules * @returns The filtered node, or null if the entire subtree should be filtered */ export declare function filterFlameTree(node: FlameNode, showAppCodeOnly: boolean): FlameNode | null; /** * Filters a FlameNode tree and recalculates values and positions. * This is the main entry point for applying the "Show App Code Only" filter. * * @param root The root FlameNode * @param showAppCodeOnly If true, filter out Node.js internals and node_modules * @returns A new FlameNode tree with filtering applied */ export declare function filterAndRecalculate(root: FlameNode, showAppCodeOnly: boolean): FlameNode; //# sourceMappingURL=frameFilters.d.ts.map