import type { GDriveAccessor } from '../../accessor/gdrive.ts';
import { ByteSpool } from '../../io/spool.ts';
import type { ByteSource } from '../../io/types.ts';
import { type FileStat, type PathSpec } from '../../types.ts';
import type { Handed } from '../../vfs/types.ts';
/**
 * Upload a new file, or new content for an existing one, handed what is at
 * `path` and at its parent. A stream is spooled first, as an upload sends its
 * length; `signal` stops it. Answers the stored file's stat, null for a reply
 * that names none. Mirrors Python's `write`.
 */
export declare const write: (accessor: GDriveAccessor, path: PathSpec, data: ByteSource | ByteSpool, handed?: Handed | undefined, signal?: AbortSignal | undefined) => Promise<FileStat | null>;
//# sourceMappingURL=write.d.ts.map