/**
 * Memory Engine Compatibility Layer — Brain.db Cognitive Memory
 *
 * Async wrappers around brain.db cognitive memory functions that return
 * EngineResult<T> format for consumption by the dispatch layer.
 *
 * After the memory domain cutover (T5241), this file contains ONLY
 * brain.db-backed operations. Manifest operations moved to
 * pipeline-manifest-compat.ts, and context injection moved to
 * sessions/context-inject.ts.
 *
 * @task T5241
 * @epic T5149
 */
import type { EngineResult } from '../engine-result.js';
import { type SearchLearningParams, type StoreLearningParams } from './learnings.js';
import { type SearchPatternParams, type StorePatternParams } from './patterns.js';
/** memory.show - Look up a brain.db entry by ID */
export declare function memoryShow(entryId: string, projectRoot?: string): Promise<EngineResult>;
/** memory.stats - Aggregate stats from brain.db across all tables */
export declare function memoryBrainStats(projectRoot?: string): Promise<EngineResult>;
/** memory.decision.find - Search decisions in brain.db */
export declare function memoryDecisionFind(params: {
    query?: string;
    taskId?: string;
    limit?: number;
}, projectRoot?: string): Promise<EngineResult>;
/** memory.decision.store - Store a decision to brain.db */
export declare function memoryDecisionStore(params: {
    decision: string;
    rationale: string;
    alternatives?: string[];
    taskId?: string;
    sessionId?: string;
}, projectRoot?: string): Promise<EngineResult>;
/** memory.find - Token-efficient brain search */
export declare function memoryFind(params: {
    query: string;
    limit?: number;
    tables?: string[];
    dateStart?: string;
    dateEnd?: string;
}, projectRoot?: string): Promise<EngineResult>;
/** memory.timeline - Chronological context around anchor */
export declare function memoryTimeline(params: {
    anchor: string;
    depthBefore?: number;
    depthAfter?: number;
}, projectRoot?: string): Promise<EngineResult>;
/** memory.fetch - Batch fetch brain entries by IDs */
export declare function memoryFetch(params: {
    ids: string[];
}, projectRoot?: string): Promise<EngineResult>;
/** memory.observe - Save observation to brain */
export declare function memoryObserve(params: {
    text: string;
    title?: string;
    type?: string;
    project?: string;
    sourceSessionId?: string;
    sourceType?: string;
}, projectRoot?: string): Promise<EngineResult>;
/** memory.pattern.store - Store a pattern to BRAIN memory */
export declare function memoryPatternStore(params: StorePatternParams, projectRoot?: string): Promise<EngineResult>;
/** memory.pattern.find - Search patterns in BRAIN memory */
export declare function memoryPatternFind(params: SearchPatternParams, projectRoot?: string): Promise<EngineResult>;
/** memory.pattern.stats - Get pattern memory statistics */
export declare function memoryPatternStats(projectRoot?: string): Promise<EngineResult>;
/** memory.learning.store - Store a learning to BRAIN memory */
export declare function memoryLearningStore(params: StoreLearningParams, projectRoot?: string): Promise<EngineResult>;
/** memory.learning.find - Search learnings in BRAIN memory */
export declare function memoryLearningFind(params: SearchLearningParams, projectRoot?: string): Promise<EngineResult>;
/** memory.learning.stats - Get learning memory statistics */
export declare function memoryLearningStats(projectRoot?: string): Promise<EngineResult>;
/** memory.contradictions - Find contradictory entries in brain.db */
export declare function memoryContradictions(projectRoot?: string): Promise<EngineResult>;
/** memory.superseded - Find superseded entries in brain.db
 *
 * Identifies entries that have been superseded by newer entries on the same topic.
 * For brain.db, we group by:
 * - Decisions: type + contextTaskId/contextEpicId
 * - Patterns: type + context (first 100 chars for similarity)
 * - Learnings: source + applicableTypes
 * - Observations: type + project
 */
export declare function memorySuperseded(params?: {
    type?: string;
    project?: string;
}, projectRoot?: string): Promise<EngineResult>;
/** memory.link - Link a brain entry to a task */
export declare function memoryLink(params: {
    taskId: string;
    entryId: string;
}, projectRoot?: string): Promise<EngineResult>;
/** memory.unlink - Remove a link between a brain entry and a task */
export declare function memoryUnlink(params: {
    taskId: string;
    entryId: string;
}, projectRoot?: string): Promise<EngineResult>;
/** memory.graph.add - Add a node or edge to the PageIndex graph */
export declare function memoryGraphAdd(params: {
    nodeId?: string;
    nodeType?: string;
    label?: string;
    metadataJson?: string;
    fromId?: string;
    toId?: string;
    edgeType?: string;
    weight?: number;
}, projectRoot?: string): Promise<EngineResult>;
/** memory.graph.show - Get a node and its edges from the PageIndex graph */
export declare function memoryGraphShow(params: {
    nodeId: string;
}, projectRoot?: string): Promise<EngineResult>;
/** memory.graph.neighbors - Get neighbor nodes from the PageIndex graph */
export declare function memoryGraphNeighbors(params: {
    nodeId: string;
    edgeType?: string;
}, projectRoot?: string): Promise<EngineResult>;
/** memory.reason.why - Causal trace through task dependency chains */
export declare function memoryReasonWhy(params: {
    taskId: string;
}, projectRoot?: string): Promise<EngineResult>;
/** memory.reason.similar - Find semantically similar entries */
export declare function memoryReasonSimilar(params: {
    entryId: string;
    limit?: number;
}, projectRoot?: string): Promise<EngineResult>;
/** memory.search.hybrid - Hybrid search across FTS5, vector, and graph */
export declare function memorySearchHybrid(params: {
    query: string;
    ftsWeight?: number;
    vecWeight?: number;
    graphWeight?: number;
    limit?: number;
}, projectRoot?: string): Promise<EngineResult>;
/** memory.graph.remove - Remove a node or edge from the PageIndex graph */
export declare function memoryGraphRemove(params: {
    nodeId?: string;
    fromId?: string;
    toId?: string;
    edgeType?: string;
}, projectRoot?: string): Promise<EngineResult>;
//# sourceMappingURL=engine-compat.d.ts.map