@astermind/astermind-pro
Version:
Astermind Pro - Premium ML Toolkit with Advanced RAG, Reranking, Summarization, and Information Flow Analysis
27 lines • 734 B
TypeScript
export type SectionNode = {
id: number;
level: number;
heading: string;
rich: string;
content: string;
children: SectionNode[];
parent?: number;
};
export type Chunk = {
heading: string;
content: string;
rich?: string;
level?: number;
secId?: number;
};
export declare function stripForIndex(md: string, opts: {
stripCode: boolean;
stripLinks: boolean;
}): string;
export declare function parseMarkdownToSections(md: string, opts?: {
stripCode: boolean;
stripLinks: boolean;
}): SectionNode;
export declare function backfillEmptyParents(root: SectionNode): void;
export declare function flattenSections(root: SectionNode): Chunk[];
//# sourceMappingURL=markdown.d.ts.map