UNPKG

koishi-plugin-image-tools

Version:
16 lines (15 loc) 678 B
export declare const name = "image-tools"; export declare const tmpDir: string; export type AvailableZipType = 'zip' | '7z'; export declare const ZIP_MIME_TYPES: Record<AvailableZipType, string>; export declare function chunks<T>(arr: T[], n: number): Generator<T[], void>; export declare class CommandExecuteError extends Error { readonly code: number; readonly name = "CommandExecuteError"; constructor(code: number); } export declare function runCmd(cmd: string[], options?: { cwd: string; }): Promise<void>; export declare function is7zExist(): Promise<boolean>; export declare function zipBlobs(blobs: Blob[], fileType?: AvailableZipType): Promise<string>;