import type { SelectedScope } from "@oscharko-dev/keiko-contracts/connected-context";
import { type MicroIndex } from "@oscharko-dev/keiko-workflows";
export interface GroundedContextIndexRegistryOptions {
    readonly ttlMs?: number;
    readonly maxEntriesPerScope?: number;
    readonly maxScopes?: number;
}
export interface GroundedContextIndexRegistry {
    forScope(scope: SelectedScope, nowMs: () => number): MicroIndex;
    clearConversation(conversationId: string): void;
    clearWorkspace(workspaceRoot: string): void;
    clearAll(): void;
    sweep(nowMs: () => number): void;
    size(): number;
}
export declare function createGroundedContextIndexRegistry(options?: GroundedContextIndexRegistryOptions): GroundedContextIndexRegistry;
export declare const groundedContextIndexRegistry: GroundedContextIndexRegistry;
export declare function microIndexForGroundedScope(scope: SelectedScope, nowMs: () => number): MicroIndex;
export declare function clearGroundedContextIndexesForConversation(conversationId: string): void;
export declare function clearGroundedContextIndexesForWorkspace(workspaceRoot: string): void;
export declare function clearAllGroundedContextIndexes(): void;
//# sourceMappingURL=grounded-context-index.d.ts.map