import type { KnowledgeSourceAdapter, KnowledgeSourceItemInput, KnowledgeSyncRun } from './types.js'; export interface KnowledgeSourceStateStore { getCursor(instanceId: string, collectionScope: string): string | undefined; setCursor(instanceId: string, collectionScope: string, cursor: string | undefined): void; } export declare class SqliteKnowledgeSourceStateStore implements KnowledgeSourceStateStore { getCursor(instanceId: string, collectionScope: string): string | undefined; setCursor(instanceId: string, collectionScope: string, cursor: string | undefined): void; } export declare class KnowledgeIngestionService { private readonly adapters; private readonly state; constructor(adapters: ReadonlyMap, state?: KnowledgeSourceStateStore); ingest(params: { instanceId: string; collectionScope: string; items: KnowledgeSourceItemInput[]; cursorAfter?: string; warnings?: string[]; }): KnowledgeSyncRun; sync(params: { adapterKind: string; instanceId: string; collectionScope: string; windowStart?: string; signal?: AbortSignal; }): Promise; }