import { IWritable } from '../types.js';
import { IFrameEncoder } from './types.js';
/** options for {@link FramedWriter} */
export interface FramedWriterOptions {
initialBufferSize?: number;
}
/** a writer that encodes frames one by one into a writable stream */
export declare class FramedWriter {
#private;
/**
* @param writable fuman writable stream to write to
* @param encoder frame encoder
* @param options extra options
*/
constructor(writable: IWritable, encoder: IFrameEncoder, options?: FramedWriterOptions);
/** write a frame to the stream */
write(frame: Frame): Promise;
}