import type { Readable } from 'node:stream'; import type { BinaryData } from './types'; export declare const CONFIG_MODES: readonly ["default", "filesystem", "s3"]; export declare function areConfigModes(modes: string[]): modes is BinaryData.ConfigMode[]; export declare function isStoredMode(mode: string): mode is BinaryData.StoredMode; export declare function assertDir(dir: string): Promise; export declare function doesNotExist(dir: string): Promise; export declare function streamToBuffer(stream: Readable): Promise>; export declare function binaryToBuffer(body: Buffer | Readable): Promise>;