import type { FabricMemoryConfig } from "../config.js"; import type { MemorySourceRegistry } from "./portable.js"; import { type SessionRef } from "./discovery.js"; import type { LiveSessionBranch, MemoryBranches } from "./lineage.js"; import { type MemoryIndexOptions } from "./index.js"; export interface MemoryProviderContext { agentDir: string; cwd: string; config: FabricMemoryConfig; sessionId?: string; sessionFile?: string; getLiveBranch?: () => LiveSessionBranch; /** Registered portable memory sources; present enables host-backed calls. */ sources?: MemorySourceRegistry; } export declare const parseBranches: (value: unknown, action: string) => MemoryBranches; export declare const resolveIndexOptions: (config: FabricMemoryConfig, agentDir: string, branches: MemoryBranches, liveBranchForFile?: MemoryIndexOptions["liveBranchForFile"]) => MemoryIndexOptions; export declare const resolveTierRefs: (refs: SessionRef[], context: MemoryProviderContext) => SessionRef[]; export declare const resolveRefs: (scope: string | undefined, context: MemoryProviderContext, boundedBrowse: boolean) => SessionRef[]; export declare const liveBranchResolver: (context: MemoryProviderContext) => MemoryIndexOptions["liveBranchForFile"] | undefined; export declare const stalePointerError: (sessionFile: string, expectedSourceHash: string | undefined, actualSourceHash: string, expectedLineageFingerprint?: string, actualLineageFingerprint?: string) => { actualLineageFingerprint?: string; expectedLineageFingerprint?: string; actualSourceHash: string; expectedSourceHash?: string; code: string; message: string; sessionFile: string; }; export declare const addressError: (message: string, entryCount?: number) => { entryCount?: number; code: string; message: string; }; export declare const recallFailure: (error: { code: string; message: string; [key: string]: unknown; }) => { total: number; hits: never[]; next: null; coverage: { complete: boolean; indexedSessions: number; eligibleSessions: number; staleSessions: number; incompleteSessions: number; reasons: string[]; }; error: { [key: string]: unknown; code: string; message: string; }; }; //# sourceMappingURL=request-context.d.ts.map