import type { VaultInfo } from "../utils/vault.js"; export interface OverviewFolder { path: string; notes: number; keywords: string[]; /** * Notes each keyword fingerprints (parallel to `keywords`). Terms shared * by many notes are the row's de-facto domains — they sort first, and * `--json` consumers can weight them. */ keywordNotes: number[]; tags: string[]; /** * The folder's description from _about.md — the `description:` * frontmatter property verbatim, or its first prose paragraph. */ about?: string; /** Number of subfolders rolled up into this row (homogeneous-sibling collapse). */ collapsedFolders?: number; /** * Names of the rolled-up subfolders (largest first). Child folder names are * curated entity labels — the most valuable index a collapsed row can show. */ contains?: string[]; } export interface VaultOverview { context?: string; overview: OverviewFolder[]; warnings?: string[]; } /** * Overview tuning. Every field falls back to the vault's config when * omitted, so a caller that owns these values in code can pass them * explicitly and never inherit a vault's stored defaults. */ export interface OverviewOptions { /** How many folder levels deep to walk. */ depth?: number; /** Max keywords per folder row; 0 = quality-governed, no cap. */ keywords?: number; /** Roll up numerous, lexically homogeneous sibling folders into one row. */ collapse?: boolean; } export declare function getOverview(vault: VaultInfo, opts?: OverviewOptions): VaultOverview;