import { Context } from "koishi"; import { StorageDriver, FileStats } from "../types"; /** * 本地文件系统存储驱动 */ export declare class LocalStorageDriver implements StorageDriver { private readonly ctx; readonly baseDir: string; private readonly logger; constructor(ctx: Context, baseDir: string); private ensureDirectory; getPath(id: string): string; write(id: string, buffer: Buffer): Promise; read(id: string): Promise; delete(id: string): Promise; exists(id: string): Promise; getStats(id: string): Promise; listFiles(): Promise; }