type NodeType = 'element' | 'comment' | 'text'; interface Node { type: NodeType; } interface Attribute { key: string; value?: string; } export interface Element extends Node { type: 'element'; tagName: string; children: Node[] | Element[]; attributes: Attribute[]; } interface HimalayaJson { children: any[]; content: string; tagName: string; filter: (predicate: (x: any) => boolean) => any; } export declare const tap: (json: HimalayaJson) => HimalayaJson; /** * Parses a HTML file and retrieves the content of all `