import type { WritableOptions } from 'node:stream'; import type { Options } from './models.ts'; import { Writable } from 'node:stream'; export declare class FastImageStream extends Writable { buffer: Buffer; threshold: number; start: bigint; finished: boolean; constructor(options: Partial & WritableOptions); analyze(chunk: Buffer): void; _write(chunk: Buffer, _e: BufferEncoding, cb: (error?: Error | null) => void): void; _writev(chunks: { chunk: Buffer; }[], cb: (error?: Error | null) => void): void; _final(cb: (error?: Error | null) => void): void; }