import React from 'react'; import { StoreType } from '../model/store.js'; import type { TransformerConfig } from 'konva/lib/shapes/Transformer'; import type { RectConfig } from 'konva/lib/shapes/Rect'; import type { LineConfig } from 'konva/lib/shapes/Line'; export type GroupSelectionMode = 'drill' | 'group'; export type WorkspaceProps = { store: StoreType; layout?: 'vertical' | 'horizontal'; pageControlsEnabled?: boolean; backgroundColor?: string; transparencyBackgroundColor?: string; pageBorderColor?: string; activePageBorderColor?: string; bleedColor?: string; snapGuideStroke?: string; snapGuideStrokeWidth?: number; snapGuideDash?: number[]; selectionRectFill?: string; selectionRectStroke?: string; selectionRectStrokeWidth?: number; transformLabelFill?: string; transformLabelTextFill?: string; cropOverlayFill?: string; cropGridStyle?: LineConfig | null; transformerStyle?: TransformerConfig; innerImageCropTransformerStyle?: TransformerConfig; outerImageCropTransformerStyle?: TransformerConfig; highlighterStyle?: RectConfig; mediaLoadingStyle?: { fill?: string; textFill?: string; }; mediaErrorStyle?: { fill?: string; textFill?: string; }; textOverflowIndicatorStyle?: { stroke?: string; }; distanceGuideStroke?: string; distanceLabelFill?: string; distanceLabelTextFill?: string; rulerBackgroundColor?: string; rulerTextColor?: string; rulerBorderColor?: string; rulerBorderSize?: number; rulerTickColor?: string; rulerTickSize?: number; components?: any; onKeyDown?: (e: KeyboardEvent, store: StoreType) => void; onPaste?: (e: ClipboardEvent, store: StoreType) => void; paddingX?: number; paddingY?: number; pageGap?: number; altCloneEnabled?: boolean; groupSelectionMode?: GroupSelectionMode; visiblePagesOffset?: number; renderOnlyActivePage?: boolean; scrollToPageThreshold?: number; tooltipSafeArea?: { top?: number; bottom?: number; left?: number; right?: number; }; }; export declare const WorkspaceCanvas: (({ store, layout, pageControlsEnabled, backgroundColor, transparencyBackgroundColor, pageBorderColor, activePageBorderColor, bleedColor, snapGuideStroke, snapGuideStrokeWidth, snapGuideDash, selectionRectFill, selectionRectStroke, selectionRectStrokeWidth, transformLabelFill, transformLabelTextFill, cropOverlayFill, cropGridStyle, transformerStyle, innerImageCropTransformerStyle, outerImageCropTransformerStyle, highlighterStyle, mediaLoadingStyle, mediaErrorStyle, textOverflowIndicatorStyle, distanceGuideStroke, distanceLabelFill, distanceLabelTextFill, rulerBackgroundColor, rulerTextColor, rulerBorderColor, rulerBorderSize, rulerTickColor, rulerTickSize, components, onKeyDown, onPaste, paddingX, paddingY, pageGap, altCloneEnabled, groupSelectionMode, visiblePagesOffset, renderOnlyActivePage, scrollToPageThreshold, tooltipSafeArea, }: WorkspaceProps) => React.JSX.Element) & React.NamedExoticComponent & { readonly type: ({ store, layout, pageControlsEnabled, backgroundColor, transparencyBackgroundColor, pageBorderColor, activePageBorderColor, bleedColor, snapGuideStroke, snapGuideStrokeWidth, snapGuideDash, selectionRectFill, selectionRectStroke, selectionRectStrokeWidth, transformLabelFill, transformLabelTextFill, cropOverlayFill, cropGridStyle, transformerStyle, innerImageCropTransformerStyle, outerImageCropTransformerStyle, highlighterStyle, mediaLoadingStyle, mediaErrorStyle, textOverflowIndicatorStyle, distanceGuideStroke, distanceLabelFill, distanceLabelTextFill, rulerBackgroundColor, rulerTextColor, rulerBorderColor, rulerBorderSize, rulerTickColor, rulerTickSize, components, onKeyDown, onPaste, paddingX, paddingY, pageGap, altCloneEnabled, groupSelectionMode, visiblePagesOffset, renderOnlyActivePage, scrollToPageThreshold, tooltipSafeArea, }: WorkspaceProps) => React.JSX.Element; }; export default WorkspaceCanvas;