import { IStorageEngine } from './storage'; export interface IAsunaContextOpts { /** * default: app */ defaultModulePrefix?: string; } export declare type StorageEngineMode = 'chunks'; export declare class AsunaContext { private readonly config; static readonly instance: AsunaContext; opts: IAsunaContextOpts; readonly dirname: string; defaultStorageEngine: IStorageEngine; /** * @see AsunaContext.defaultStorageEngine * @deprecated */ videosStorageEngine: IStorageEngine; /** * @see AsunaContext.defaultStorageEngine * @deprecated */ filesStorageEngine: IStorageEngine; chunksStorageEngine: IStorageEngine; localStorageEngine: IStorageEngine; private constructor(); setup(opts?: Partial): void; getStorageEngine(bucket: string): IStorageEngine; initStorageEngine(uploadPath: string): void; getFilePath(fullpath: string): string; get defaultModulePrefix(): string; static get isDebugMode(): boolean; }