import type { EntityId } from '../core/branded-types.js';
import { WorkspaceScopedResource } from './base.js';
/**
 * Agent Memory — structured long-term memory for entities.
 *
 * Memory is organised into dimensions (e.g. "preferences", "health_history").
 * Each dimension accumulates facts extracted from calls and events over time.
 * This powers the "Agent Memory" view in the console.
 */
export declare class MemoryResource extends WorkspaceScopedResource {
    /**
     * Get all memory dimension scores for an entity.
     * Scores reflect how complete and confident each dimension's facts are.
     */
    getEntityDimensions(entityId: EntityId | string): Promise<{
        dimensions: {
            avg_confidence: number;
            description: string | null;
            dimension: string;
            fact_count: number;
            latest_fact_at: string | null;
            name: string;
            source_count: number;
            weight: number;
        }[];
        entity_id: string;
        total_facts: number;
    } & import("../index.js").ResponseMetadata>;
    /**
     * Get individual memory facts for an entity, optionally filtered by dimension.
     */
    getEntityFacts(entityId: EntityId | string, params?: {
        dimension?: string;
        limit?: number;
    }): Promise<{
        dimension: string | null;
        entity_id: string;
        facts: {
            confidence: number;
            data?: {
                [x: string]: unknown;
            } | null | undefined;
            dimension: string;
            event_type: string;
            extracted_text: string | null;
            ingested_at: string | null;
            source: string | null;
        }[];
        total: number;
    } & import("../index.js").ResponseMetadata>;
    /**
     * Get workspace-level memory analytics — coverage rates, dimension health,
     * and fact ingestion trends.
     */
    getAnalytics(): Promise<{
        active_dimensions: number;
        builtin_dimensions: number;
        coverage_rate: number;
        custom_dimensions: number;
        dimensions: {
            active: boolean;
            avg_confidence: number;
            avg_facts_per_entity: number;
            builtin: boolean;
            description: string | null;
            dimension: string;
            entity_count: number;
            extraction_mode: string;
            latest_fact_at: string | null;
            name: string;
            sample_facts?: {
                confidence: number;
                entity_id: string;
                extracted_text: string;
            }[] | undefined;
            source_breakdown: {
                [x: string]: number;
            };
            total_facts: number;
            weight: number;
        }[];
        facts_last_24h: number;
        facts_last_30d: number;
        facts_last_7d: number;
        llm_dimensions: number;
        top_sources: {
            entity_count: number;
            fact_count: number;
            source: string;
        }[];
        total_entities_in_workspace: number;
        total_entities_with_memory: number;
        total_facts: number;
    } & import("../index.js").ResponseMetadata>;
}
//# sourceMappingURL=memory.d.ts.map