UNPKG

@refore-ai/copy-to-design-sdk

Version:

Copy the HTML source and import it into the design platform via the plugin.

28 lines 796 B
//#region src/index.d.ts declare enum PlatformType { Figma = "figma", MasterGo = "mastergo", JSDesign = "jsdesign", PixsoChina = "pixso-china", } interface ICopyToClipboardFromHTMLOptions { width: number; height: number; platform: PlatformType; } interface CopyToDesignOptions { key: string; /** For internal development use only */ _endpoint?: (platform: PlatformType) => string; } declare class CopyToDesign { private options; constructor(options: CopyToDesignOptions); private getEndpointByPlatform; get headers(): { Authorization: string; }; copyToClipboardFromHTML(html: string | string[], options: ICopyToClipboardFromHTMLOptions): Promise<void>; } //#endregion export { CopyToDesign, CopyToDesignOptions, ICopyToClipboardFromHTMLOptions, PlatformType };