import type { TiDBFilesystemAccessor } from '../../accessor/tidb_filesystem.ts';
import { ByteSpool } from '../../io/spool.ts';
import type { ByteSource } from '../../io/types.ts';
import { type PathSpec } from '../../types.ts';
/**
 * Replace a file's bytes once one fs:batch-stat has found its parent chain
 * all directories and the path itself no directory, since drive9 would make
 * the parents and file the bytes beside a directory. A stream is spooled
 * first, as a multipart upload states its size.
 */
export declare function write(accessor: TiDBFilesystemAccessor, path: PathSpec, data: ByteSource | ByteSpool): Promise<void>;
//# sourceMappingURL=write.d.ts.map