/** * WikiRecentService — surface the N most-recently-modified `.md` pages * in a vault. Powers the "What's new" widget in the page-pane empty * state, so a human landing on a vault sees the freshest content * without expanding the tree. * * Cheap to call: one filesystem walk + sort by mtime. Vaults are small * (O(100s) pages), so no caching for Phase 1. * * @module services/wiki/wiki-recent.service */ /** Default number of recent pages returned when caller passes no limit. */ export declare const WIKI_RECENT_DEFAULT_LIMIT = 8; /** Upper bound on the limit param to prevent unbounded responses. */ export declare const WIKI_RECENT_MAX_LIMIT = 50; /** Cap on .md files walked per request. */ export declare const WIKI_RECENT_MAX_FILES = 500; export interface WikiRecentEntry { /** Path relative to vault root. */ relativePath: string; /** File size in bytes. */ bytes: number; /** ISO timestamp of last modification. */ modifiedAt: string; /** True if this file lives inside a folder whose name starts with `llm-curated/`. */ llmCurated: boolean; } export type WikiRecentOutcome = { ok: true; vaultPath: string; entries: WikiRecentEntry[]; } | { ok: false; reason: 'vault_missing' | 'invalid_input'; message: string; }; export interface WikiRecentInput { vaultPath: string; limit?: number; } /** * Singleton service for the recent-pages list. */ export declare class WikiRecentService { private static instance; static getInstance(): WikiRecentService; static resetInstance(): void; list(input: WikiRecentInput): Promise; private collectMdFiles; } //# sourceMappingURL=wiki-recent.service.d.ts.map