import type { Ctx } from '@milkdown/ctx'; import type { Node, ResolvedPos } from '@milkdown/prose/model'; import type { Transaction } from '@milkdown/prose/state'; import type { InsertStrategy, StreamingState } from './types'; export declare function flushBuffer(ctx: Ctx, tr: Transaction, buffer: string): { tr: Transaction; newDoc: Node | null; }; export declare function defaultInsertStrategy(resolved: ResolvedPos): InsertStrategy; export interface FlushInsertOptions { buffer: string; insertPos: number; currentEndPos: number; } type InsertResult = { tr: Transaction; applied: boolean; insertEndPos: number; }; export declare function flushBufferInsert(ctx: Ctx, tr: Transaction, options: FlushInsertOptions): InsertResult; export interface FlushResult { tr: Transaction; newDoc: Node | null; insertEndPos?: number; } export declare function performFlush(ctx: Ctx, tr: Transaction, streamingState: StreamingState): FlushResult; export {}; //# sourceMappingURL=flush.d.ts.map