export interface PromptUsage { count: number; lastUsedAt: string; } /** * Tracks how often each prompt is inserted, keyed by slug, in a single JSON * file (`profiles//prompt-usage.json`). Kept SEPARATE from the prompt * entries so usage can be recorded for read-only builtin prompts without * copy-on-writing them into the user layer. Surfaces "recent / most-used" * views and a gentle search-ranking boost. */ export declare class PromptUsageStore { private readonly file; private cachedUsage; private cachedSignature; private readonly pendingRecords; private drainScheduled; private draining; constructor(file: string); load(): Promise>; private loadInternal; record(slug: string, at?: string): Promise; get(slug: string): Promise; /** Slugs ordered by most-recently-used (then by count), capped at `limit`. */ recent(limit?: number): Promise<{ slug: string; usage: PromptUsage; }[]>; /** Slugs ordered by usage count (then recency), capped at `limit`. */ top(limit?: number): Promise<{ slug: string; usage: PromptUsage; }[]>; private scheduleDrain; private drainPending; private fileSignature; } //# sourceMappingURL=prompt-usage-store.d.ts.map