UNPKG

gmll

Version:

A generic launcher core for building custom launchers

16 lines (15 loc) 618 B
import type { DownloadableFile } from "types"; import { Dir, File } from "gfsl"; export declare function check(json: Partial<DownloadableFile>): number; export declare function toDownloadable(file: File, url: string, key?: string, chk?: { sha1?: string | string[]; size?: number; }, opt?: { executable?: boolean | string; unzip?: { file: Dir; exclude?: string[]; }; }): DownloadableFile; export declare function expand(file: File, json: Partial<DownloadableFile>, zipDir: Dir): Promise<void>; export declare function processFile(json: DownloadableFile, zipDir: Dir): Promise<void>;