UNPKG

sb-edit

Version:

Import, edit, and export Scratch project files

17 lines (16 loc) 519 B
import * as JSZip from "jszip"; import * as sb3 from "./interfaces"; import Project from "../../Project"; interface AssetInfo { type: "costume" | "sound"; name: string; md5: string; ext: string; spriteName: string; } type GetAsset = (info: AssetInfo) => Promise<unknown>; export declare function fromSb3JSON(json: sb3.ProjectJSON, options: { getAsset: GetAsset; }): Promise<Project>; export default function fromSb3(fileData: Parameters<typeof JSZip.loadAsync>[0]): Promise<Project>; export {};