export type RetrievalScopeChannel = 'context' | 'memory' | 'knowledge'; export type RetrievalScopeOperation = 'read' | 'write'; export interface RetrievalScopeInput { channel: RetrievalScopeChannel; operation?: RetrievalScopeOperation; projectId: string; projectSnapshotId?: string; memoryNamespace?: string; actorId?: string; sessionId?: string; } export interface RetrievalStorageScope { projectId: string; projectSnapshotId?: string; memoryNamespace?: string; actorId?: string; sessionId?: string; } export interface MemoryProjectScope { projectId: string; memoryNamespace: string; } export interface MemoryWriteProvenance { actorId: string; sessionId: string; supersedesEpisodeId?: string; } export interface CompiledRetrievalScope { channel: RetrievalScopeChannel; operation: RetrievalScopeOperation; storageMetadata: RetrievalStorageScope; queryFilter: RetrievalStorageScope; } export declare function compileRetrievalScope(input: RetrievalScopeInput): CompiledRetrievalScope; export declare function authorizeMemoryMutation(input: { id: string; requestScope: CompiledRetrievalScope; storedScope: RetrievalStorageScope; }): { id: string; scope: RetrievalStorageScope; }; export declare function stripMutableIdentityMetadata>(metadata: T): Omit; //# sourceMappingURL=retrieval-scope.d.ts.map