/** * brain-memory — Multi-scope isolation * * Isolates memories by session/agent/workspace scope. * Controls read/write permissions per scope. * Supports cross-scope retrieval when authorized. */ export interface MemoryScope { sessionId?: string; agentId?: string; workspaceId?: string; } export interface ScopeFilter { includeScopes: MemoryScope[]; excludeScopes: MemoryScope[]; allowCrossScope: boolean; } export declare const DEFAULT_SCOPE_FILTER: ScopeFilter; /** * Check if two scopes match. * A scope matches if all non-null fields are equal. */ export declare function scopesMatch(a: MemoryScope, b: MemoryScope): boolean; /** * Generate a scope key for storage/indexing. */ export declare function scopeKey(scope: MemoryScope): string; /** * Build a parameterized SQL WHERE clause for scope filtering. * Returns `{ clause, params }` where `clause` contains `?` placeholders * and `params` holds the bound values — preventing SQL injection. * Returns `{ clause: "", params: [] }` if no filtering needed. */ export declare function buildScopeFilterClause(filter: ScopeFilter): { clause: string; params: any[]; }; //# sourceMappingURL=isolation.d.ts.map