import { buildStorageKey, type PutOptions, type StorageAdapter, type StoredObject } from './types.js'; export interface LocalStorageConfig { /** Directory uploads are written to, e.g. `./public/uploads`. */ directory: string; /** URL prefix the directory is served from, e.g. `/uploads`. */ publicPath: string; } /** * Local-disk storage for development. * * Node modules are imported lazily through a variable specifier so this file can be part of a * bundle that also targets Workers without the bundler trying to resolve `node:fs`. */ export declare class LocalStorageAdapter implements StorageAdapter { #private; readonly name: "local"; constructor(config: LocalStorageConfig); put(key: string, body: Uint8Array | ArrayBuffer, options?: PutOptions): Promise; get(key: string): Promise; delete(key: string): Promise; exists(key: string): Promise; publicUrl(key: string): string; } export { buildStorageKey };