import { Buffer } from 'node:buffer'; import type { ChecksumOptions, DirectoryListing, FileContents, GetStreamOptions, ListOptions, MimeTypeOptions, PublicUrlOptions, PutResult, PutStreamOptions, SignedUrlOptions, StatEntry, StorageAdapter, TemporaryUrlOptions, Visibility } from '../types'; /** * Create an in-memory storage adapter instance */ export declare function createMemoryStorage(): InMemoryStorageAdapter; /** * In-memory storage adapter for testing and temporary storage */ export declare class InMemoryStorageAdapter implements StorageAdapter { constructor(); write(path: string, contents: FileContents): Promise; read(path: string): Promise; getStream(path: string, _options?: GetStreamOptions): Promise>; putStream(path: string, stream: ReadableStream, options?: PutStreamOptions): Promise; readToString(path: string): Promise; readToBuffer(path: string): Promise; readToUint8Array(path: string): Promise; deleteFile(path: string): Promise; deleteDirectory(path: string): Promise; createDirectory(path: string): Promise; moveFile(from: string, to: string): Promise; copyFile(from: string, to: string): Promise; stat(path: string): Promise; list(path: string, options?: ListOptions): DirectoryListing; changeVisibility(path: string, visibility: Visibility): Promise; visibility(path: string): Promise; fileExists(path: string): Promise; directoryExists(path: string): Promise; publicUrl(path: string, options?: PublicUrlOptions): Promise; temporaryUrl(path: string, options: TemporaryUrlOptions): Promise; signedUrl(_path: string, _options: SignedUrlOptions): Promise; checksum(path: string, options?: ChecksumOptions): Promise; mimeType(path: string, _options?: MimeTypeOptions): Promise; lastModified(path: string): Promise; fileSize(path: string): Promise; clear(): void; }