import { type ByteSource } from '../../io/types.ts';
import type { PathSpec } from '../../types.ts';
import type { RedisAccessor } from '../../accessor/redis.ts';
/**
 * Replace a file's bytes, or add them to its end. Bytes land at once, as does
 * a stream under `atomic`, staged until it ends. Any other stream lands as it
 * arrives, so a reader watches the file grow: a replacement at its own
 * position (`SETRANGE`), as an open file's offset keeps it. An append goes at
 * the file's end (`APPEND`, which also creates a missing one), so another
 * appender's bytes stay, and one that brings nothing leaves an existing file
 * as it was (`true >> f`). Mirrors Python's `write`.
 */
export declare function write(accessor: RedisAccessor, path: PathSpec, data: ByteSource, append?: boolean, atomic?: boolean): Promise<void>;
//# sourceMappingURL=write.d.ts.map