2024-04-08 04:43:30 -05:00
|
|
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
2024-04-10 05:49:05 -05:00
|
|
|
import { CircleShape } from './types/circle/circleShape';
|
2024-04-10 05:31:37 -05:00
|
|
|
import { TextShape } from './types/text/textShape';
|
2024-04-08 04:43:30 -05:00
|
|
|
|
|
|
|
export interface PenpotFile {
|
|
|
|
asMap(): any;
|
|
|
|
export(): void;
|
2024-04-09 13:44:29 -05:00
|
|
|
addPage(name: string, options?: object): void;
|
2024-04-08 04:43:30 -05:00
|
|
|
closePage(): void;
|
|
|
|
addArtboard(artboard: any): void;
|
|
|
|
closeArtboard(): void;
|
|
|
|
addGroup(group: any): void;
|
|
|
|
closeGroup(): void;
|
|
|
|
createRect(rect: any): void;
|
2024-04-10 05:49:05 -05:00
|
|
|
createCircle(circle: CircleShape): void;
|
2024-04-10 05:31:37 -05:00
|
|
|
createText(options: TextShape): void;
|
2024-04-08 04:43:30 -05:00
|
|
|
createImage(image: any): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function createFile(name: string): PenpotFile;
|