export type FlushKind = 'append' | 'write'; export declare const NO_WRITE: number; /** * Decide what a closing whole-file buffer owes the mount. * * Every encoder buffers a whole file and has to answer the same * question at close: did this handle only add to the end, or did it * rewrite what was already there? Only the first can travel as a * delta, and answering "write" always is what makes an append loop * quadratic. * * Args: * baseLen: length the file had when the handle opened. * lowWrite: lowest offset this handle wrote at, or the NO_WRITE * sentinel when it never wrote. * buf: the handle's whole buffer. * * Returns: * ['append', tail] when the handle only extended the file, else * ['write', whole buffer]. */ export declare function planFlush(baseLen: number, lowWrite: number, buf: Uint8Array): [FlushKind, Uint8Array]; //# sourceMappingURL=flush.d.ts.map