///
import { PDFDocument } from 'lachs-pdf-lib';
import Element from "./element";
export default class Artboard {
meta: any;
size: [number, number];
elements: Element[];
methods: {
name: string;
compiler: (props: any) => JSX.Element;
configurer?: (props: any, config: any) => any;
}[];
document?: PDFDocument;
constructor(size: [number, number]);
configure: (config: any) => Promise;
add: (element: Element) => Element;
addElement: (props: any, compiler: (props: any) => JSX.Element, configurer?: (props: any, config: any) => any) => Element;
addMethod: (name: string, compiler: (props: any) => JSX.Element, configurer?: (props: any, config: any) => any) => void;
toJSX: () => JSX.Element;
toCanvas: (options?: {
background?: string;
}) => Promise;
from: (pdf: ArrayBuffer) => Promise;
to: (type: string, options?: {
configs?: any;
responseType?: 'string' | 'base64' | 'binary' | 'arrayBuffer' | 'dataUri';
individual?: boolean;
}) => Promise;
toPDF: (options?: {
configs?: any;
responseType?: 'string' | 'base64' | 'binary' | 'arrayBuffer' | 'dataUri';
individual?: boolean;
}) => Promise;
toSVG: (options?: {
configs?: any;
responseType?: 'string' | 'base64' | 'binary' | 'arrayBuffer' | 'dataUri';
}) => Promise;
toPNG: (options?: {
configs?: any;
responseType?: 'string' | 'base64' | 'binary' | 'arrayBuffer' | 'dataUri';
}) => Promise;
toJPEG: (options?: {
configs?: any;
responseType?: 'string' | 'base64' | 'binary' | 'arrayBuffer' | 'dataUri';
}) => Promise;
toWEBP: (options?: {
configs?: any;
responseType?: 'string' | 'base64' | 'binary' | 'arrayBuffer' | 'dataUri';
}) => Promise;
}
//# sourceMappingURL=artboard.d.ts.map