import type { DatabaseProvider, EmbeddingProvider, VectorStoreProvider } from '@contractspec/lib.contracts-integrations';
import { DocumentProcessor, type VectorIndexConfig } from '@contractspec/lib.knowledge/ingestion';
import { ContextSnapshotPipeline, PostgresContextStorage } from '@contractspec/module.context-storage';
export interface ContextStorageServiceOptions {
    database: DatabaseProvider;
    schema?: string;
    createTablesIfMissing?: boolean;
    documentProcessor?: DocumentProcessor;
    embeddingProvider?: EmbeddingProvider;
    embeddingBatchSize?: number;
    vectorStoreProvider?: VectorStoreProvider;
    vectorIndex?: VectorIndexConfig;
}
export interface ContextStorageService {
    store: PostgresContextStorage;
    pipeline: ContextSnapshotPipeline;
}
export declare function createContextStorageService(options: ContextStorageServiceOptions): ContextStorageService;
