import { SourceDesign } from '../../entities/source/source-design.js'; import type { SourceImage, SourceTree } from '../../typings/index.js'; import type { AdditionalTextData, RawArtboardEntry } from '../../typings/raw/index.js'; export type Metadata = { version: string; }; export type RawSourceData = { artboards: RawArtboardEntry[]; additionalTextData: AdditionalTextData; metadata: Metadata; }; /** * Reader that converts Adobe Illustrator file into `SourceDesign` object. */ export declare abstract class AIFileReaderCommon { protected _sourceDesign: Promise; protected _initSourceDesign(): Promise; protected abstract _getSourceData(file?: string): Promise; /** * Cleans temporary directory where source.json and source images were saved. */ protected abstract cleanup(): Promise; protected abstract _loadImages(): SourceImage[]; _createSourceTree(): Promise; protected _fromSourceTree(sourceTree: SourceTree): SourceDesign | never; /** * Returns `SourceDesign` instance built from given design path using `@opendesign/illustrator-parser-pdfcpu`. * @returns {SourceDesign } */ getSourceDesign(): Promise; }