/** * @license * Copyright Andrey Chalkin . All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/L2jLiga/xd2svg/LICENSE */ import { Shape } from './shape'; import { Text } from './text'; export interface ArtboardLike { children: Artboard[]; } interface CommonArtboard extends ArtboardLike { id?: string; name?: string; type?: string; artboard?: Artboard; visible?: boolean; style: { [style: string]: any; }; transform: { [transform: string]: any; }; } export interface ShapeArtboard extends CommonArtboard { type: 'shape'; shape: Shape; } export interface TextArtboard extends CommonArtboard { type: 'text'; text: Text; } export interface GroupArtboard extends CommonArtboard { type: 'group'; group: Artboard; } export declare type Artboard = ShapeArtboard | TextArtboard | GroupArtboard; export {};