import type { ImageOptions } from './embedded-image'; import { EmbeddedImage } from './embedded-image'; import type { ChartOptions } from './chart'; import { Chart } from './chart'; import type { RelationshipMap } from '../relationship'; export interface CellAnchor { row: number; column_offset?: number; column: number; row_offset?: number; } export interface TwoCellAnchor { from: CellAnchor; to: CellAnchor; } export interface AnchoredChart { anchor: TwoCellAnchor; chart: Chart; relationship: string; } export interface AnchoredImage { anchor: TwoCellAnchor; image: EmbeddedImage; relationship: string; } export interface JSONCorner { 'xdr:col': number; 'xdr:colOff': number; 'xdr:row': number; 'xdr:rowOff': number; } export declare class Drawing { index: number; static next_drawing_index: number; /** relationship id sheet -> drawing */ sheet_drawing_relationship: number; charts: AnchoredChart[]; images: AnchoredImage[]; relationships: RelationshipMap; constructor(index?: number); AddImage(options: ImageOptions, anchor: TwoCellAnchor): void; AddChart(options: ChartOptions, anchor: TwoCellAnchor): void; CornerToJSON(anchor: CellAnchor): JSONCorner; AnchorToJSON(anchor: TwoCellAnchor): { 'xdr:from': JSONCorner; 'xdr:to': JSONCorner; }; toJSON(): any; }