import type { RunnableConfig } from '@langchain/core/runnables'; import { BaseCheckpointSaver, type Checkpoint, type CheckpointListOptions, type CheckpointMetadata, type CheckpointTuple, type PendingWrite, type SerializerProtocol } from '@langchain/langgraph-checkpoint'; import { type Database as DatabaseType, type Statement } from 'better-sqlite3'; interface Migration { version: number; name: string; up: (db: DatabaseType) => void; } export declare class SqliteSaver extends BaseCheckpointSaver { db: DatabaseType; protected isSetup: boolean; protected withoutCheckpoint: Statement; protected withCheckpoint: Statement; protected putCheckpointStmt: Statement; protected putWritesStmt: Statement; protected deleteCheckpointsStmt: Statement; protected putMessageStmt: Statement; protected getMessageStmt: Statement; protected deleteWritesStmt: Statement; protected deleteMessagesStmt: Statement; constructor(db: DatabaseType, serde?: SerializerProtocol); static fromConnString(connStringOrLocalPath: string): SqliteSaver; static fromDatabase(db: DatabaseType, serde?: SerializerProtocol): SqliteSaver; close(): void; protected createSchemaMigrationsTable(): void; protected getAppliedMigrations(): number[]; protected recordMigration(migration: Migration): void; protected loadMigrations(): Migration[]; protected runMigrations(): void; protected setup(): void; getTuple(config: RunnableConfig): Promise; list(config: RunnableConfig, options?: CheckpointListOptions): AsyncGenerator; put(config: RunnableConfig, _checkpoint: Checkpoint, metadata: CheckpointMetadata): Promise; putWrites(config: RunnableConfig, writes: PendingWrite[], taskId: string): Promise; deleteThread(threadId: string): Promise; protected migratePendingSends(checkpoint: Checkpoint, threadId: string, parentCheckpointId: string): Promise; } export {}; //# sourceMappingURL=index.d.ts.map