import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";

//#region src/data-access/runtime/streamChunks.d.ts
interface ConversationScope {
  tenantId: string;
  projectId: string;
  conversationId: string;
}
declare const insertStreamChunks: (db: AgentsRunDatabaseClient) => (params: ConversationScope & {
  chunks: {
    idx: number;
    data: string;
  }[];
}) => Promise<void>;
declare const markStreamComplete: (db: AgentsRunDatabaseClient) => (params: ConversationScope & {
  finalIdx: number;
}) => Promise<void>;
declare const getStreamChunks: (db: AgentsRunDatabaseClient) => (params: ConversationScope & {
  afterIdx?: number;
  limit?: number;
}) => Promise<{
  idx: number;
  data: string;
  isFinal: boolean;
}[]>;
declare const deleteStreamChunks: (db: AgentsRunDatabaseClient) => (params: ConversationScope) => Promise<void>;
declare const cleanupExpiredStreamChunks: (db: AgentsRunDatabaseClient) => (olderThanMinutes?: number, batchSize?: number) => Promise<void>;
//#endregion
export { cleanupExpiredStreamChunks, deleteStreamChunks, getStreamChunks, insertStreamChunks, markStreamComplete };