import { a as ListOptions, d as Storage, l as SignedUploadOptions, n as DownloadResult, o as ListResult, p as UploadResult, s as LocalStorageConfig, u as SignedUploadUrl } from "../types-D_DWe7k9.mjs"; //#region src/storage/local.d.ts /** * Local filesystem storage implementation */ declare class LocalStorage implements Storage { /** Resolved absolute base directory for all stored files */ private directory; private baseUrl; constructor(config: LocalStorageConfig); /** * Resolve a storage key to an absolute file path, ensuring it stays * within the configured storage directory. Uses path.resolve() for * canonical resolution rather than regex stripping. * * @throws EmDashStorageError if the resolved path escapes the base directory */ private getFilePath; upload(options: { key: string; body: Buffer | Uint8Array | ReadableStream; contentType: string; }): Promise; download(key: string): Promise; delete(key: string): Promise; exists(key: string): Promise; list(options?: ListOptions): Promise; getSignedUploadUrl(_options: SignedUploadOptions): Promise; getPublicUrl(key: string): string; } /** * Create local storage adapter * This is the factory function called at runtime */ declare function createStorage(config: Record): Storage; //#endregion export { LocalStorage, createStorage }; //# sourceMappingURL=local.d.mts.map