@adonis-agora/media
Version:
Media-library for AdonisJS — owner collections (MIME whitelist, single-file replace, ordering), image conversions (eager/lazy), pluggable content transformers (HLS video via mediabunny, metadata probe, image blur-up placeholder), and column attachments, a
19 lines • 778 B
TypeScript
import type { Disk, DiskResolver } from './types.js';
export interface StorageManagerOptions {
/** Name of the default disk (must be resolvable by the resolver). */
default: string;
/** Resolves a disk by name; in production `(name) => drive.use(name)`. */
resolve: DiskResolver;
}
/**
* Thin façade over a {@link DiskResolver} (an `@adonisjs/drive` manager in production).
* The media-library and attachment layers talk to disks only through this, so they never
* import Drive and the in-memory test resolver is a drop-in.
*/
export declare class StorageManager {
readonly defaultDisk: string;
private readonly resolver;
constructor(options: StorageManagerOptions);
disk(name?: string): Disk;
}
//# sourceMappingURL=storage_manager.d.ts.map