import { Fs, File } from '../../fs/type';
import { ReadableStream } from 'stream/web';
export declare class Publisher {
    private fs;
    constructor(fs: Fs);
    publishSource(src: Uint8Array | string, ...filenames: string[]): Promise<void>;
    publishFiles(src: ReadableStream<Uint8Array>, ...filenames: string[]): Promise<void>;
    private openFilesForWriting;
    private copyToWriter;
    private copyStreamToWriter;
}
export declare function openFileForWriting(fs: Fs, filename: string): Promise<File>;
