import type { WorkspaceSubscription } from './workspace-subscription.js'; export type WorkspaceEntryType = 'finding' | 'evidence' | 'hypothesis' | 'decision' | 'artifact' | 'status'; export type WorkspaceRelationType = 'supports' | 'contradicts' | 'depends_on' | 'supersedes'; export interface WorkspaceEntry { id: number; session_id: string; type: WorkspaceEntryType; subject: string | null; content: string; evidence: string | null; confidence: number; agent_id: string | null; relates_to: string | null; relation_type: WorkspaceRelationType | null; created_at: string; seq: number; } export interface WorkspacePublishInput { session_id: string; type: WorkspaceEntryType; subject?: string; content: string; evidence?: string[]; confidence?: number; agent_id?: string; relates_to?: number[]; relation_type?: WorkspaceRelationType; } export declare class WorkspaceStore { private readonly db; private readonly _subscriptions; constructor(dbPath?: string); private enableWalMode; publish(entry: WorkspacePublishInput): number; subscribe(subscription: WorkspaceSubscription): void; unsubscribeAll(agentId: string): void; queryRelevant(sessionId: string | null, taskPrompt: string, limit?: number): WorkspaceEntry[]; queryAll(sessionId: string): WorkspaceEntry[]; close(): void; private nextSeq; } export declare function buildFtsQuery(prompt: string): string;