import { type Operation, type Owner } from './types.js'; import type { DeliveryTransport } from './delivery.js'; export interface RecalledMemory { uri: string; text: string; score: number; } /** No management key, caller-controlled headers or owner overrides are exposed. */ export declare class OwnerMemoryClient implements DeliveryTransport { #private; readonly owner: Owner; readonly scope: string | null; constructor(options: { owner: Owner; baseUrl: string; apiKey: string; scope?: string | null; timeoutMs: number; }); verifyIdentity(): Promise; createSession(id: string): Promise; sessionExists(id: string): Promise; append(operation: Readonly): Promise; hasSource(operation: Readonly): Promise; commit(id: string): Promise<{ taskId: string; archiveId?: string; }>; findCommit(id: string): Promise<{ taskId: string; } | null>; inspect(operation: Readonly): ReturnType; /** Read-only evidence that a pre-barrier writer can no longer generate data. */ writerSettled(operation: Readonly): Promise; /** Account retirement must drain writers from every trusted peer scope. */ writerSettledAny(operation: Readonly): Promise; /** USER keys cannot remove the namespace root. Remove verified content * subtrees and every global source session; peers include scoped sessions. */ clearOwnerData(): Promise; /** Clear only the client-bound memory tree, including its derived indexes. */ clearMemoryScope(): Promise; /** Transport only: the host must persist its governance barrier and drain writers first. */ replaceMemory(uri: string, content: string): Promise; /** Remove one document, never a caller-selected directory or derived metadata file. */ removeMemory(uri: string): Promise; /** A source can be removed only through an owner/scope-bound durable operation. */ removeSource(operation: Readonly): Promise; readMemory(uri: string): Promise; /** Bound the HTTP response before decoding JSON; stat is only a preflight hint. */ readMemoryLimited(uri: string, maxBytes: number): Promise; memoryDocumentSize(uri: string): Promise; /** Enumerate only document URIs under this credential's trusted scope. */ listMemoryDocuments(): Promise; recall(query: string, limit: number, signal?: AbortSignal): Promise; }