import React from 'react'; 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 declare const EDITOR_ACCENT_COLOR = "rgb(0, 161, 255)"; export declare const DEFAULT_TRANSFORMER_STYLE: TransformerConfig; export declare const DEFAULT_INNER_IMAGE_CROP_TRANSFORMER_STYLE: TransformerConfig; export declare const DEFAULT_OUTER_IMAGE_CROP_TRANSFORMER_STYLE: TransformerConfig; export declare const DEFAULT_HIGHLIGHTER_STYLE: RectConfig; export interface SnapGuideStyle { stroke: string; strokeWidth: number; dash: number[]; } export declare const DEFAULT_SNAP_GUIDE_STYLE: SnapGuideStyle; export interface SelectionRectStyle { fill: string; stroke: string; strokeWidth: number; } export declare const DEFAULT_SELECTION_RECT_STYLE: SelectionRectStyle; export interface TransformLabelStyle { fill: string; textFill: string; } export declare const DEFAULT_TRANSFORM_LABEL_STYLE: TransformLabelStyle; export interface DistanceGuideStyle { stroke: string; labelFill: string; labelTextFill: string; } export declare const DEFAULT_DISTANCE_GUIDE_STYLE: DistanceGuideStyle; export interface MediaIndicatorStyle { fill: string; textFill: string; } export declare const DEFAULT_MEDIA_LOADING_STYLE: MediaIndicatorStyle; export declare const DEFAULT_MEDIA_ERROR_STYLE: MediaIndicatorStyle; export interface TextOverflowIndicatorStyle { stroke: string; } export declare const DEFAULT_TEXT_OVERFLOW_INDICATOR_STYLE: TextOverflowIndicatorStyle; export interface RulerStyle { backgroundColor: string; textColor: string; borderColor: string; borderSize: number; tickColor: string; tickSize: number; } export declare const DEFAULT_RULER_STYLE: RulerStyle; export declare const DEFAULT_CROP_OVERLAY_FILL = "rgba(0,0,0,0.3)"; export declare const DEFAULT_CROP_GRID_STYLE: LineConfig; export declare const DEFAULT_WORKSPACE_BACKGROUND_COLOR = "rgba(232, 232, 232, 0.9)"; export declare const DEFAULT_PAGE_BORDER_COLOR = "lightgrey"; export declare const DEFAULT_ACTIVE_PAGE_BORDER_COLOR = "rgb(0, 161, 255)"; export declare const DEFAULT_BLEED_COLOR = "rgba(255, 0, 0, 0.1)"; export interface WorkspaceStyleOverrides { cropOverlayFill?: string; workspaceBackgroundColor?: string; pageBorderColor?: string; activePageBorderColor?: string; bleedColor?: string; transparencyBackgroundColor?: string; transformerStyle?: TransformerConfig; innerImageCropTransformerStyle?: TransformerConfig; outerImageCropTransformerStyle?: TransformerConfig; highlighterStyle?: RectConfig; cropGridStyle?: LineConfig | null; mediaLoadingStyle?: Partial; mediaErrorStyle?: Partial; textOverflowIndicatorStyle?: Partial; snapGuideStroke?: string; snapGuideStrokeWidth?: number; snapGuideDash?: number[]; selectionRectFill?: string; selectionRectStroke?: string; selectionRectStrokeWidth?: number; transformLabelFill?: string; transformLabelTextFill?: string; distanceGuideStroke?: string; distanceLabelFill?: string; distanceLabelTextFill?: string; rulerBackgroundColor?: string; rulerTextColor?: string; rulerBorderColor?: string; rulerBorderSize?: number; rulerTickColor?: string; rulerTickSize?: number; } export interface ResolvedWorkspaceStyle { editorAccentColor: string; cropOverlayFill: string; workspaceBackgroundColor: string; pageBorderColor: string; activePageBorderColor: string; bleedColor: string; transparencyBackgroundColor: string | undefined; cropGridStyle: LineConfig | null; transformerStyle: TransformerConfig; innerImageCropTransformerStyle: TransformerConfig; outerImageCropTransformerStyle: TransformerConfig; highlighterStyle: RectConfig; snapGuideStyle: SnapGuideStyle; selectionRectStyle: SelectionRectStyle; transformLabelStyle: TransformLabelStyle; distanceGuideStyle: DistanceGuideStyle; mediaLoadingStyle: MediaIndicatorStyle; mediaErrorStyle: MediaIndicatorStyle; textOverflowIndicatorStyle: TextOverflowIndicatorStyle; rulerStyle: RulerStyle; } export declare function buildWorkspaceStyle(o?: WorkspaceStyleOverrides): ResolvedWorkspaceStyle; export declare const WorkspaceStyleProvider: React.Provider; export declare function useWorkspaceStyle(): ResolvedWorkspaceStyle; export declare function useResolvedWorkspaceStyle(overrides: WorkspaceStyleOverrides): ResolvedWorkspaceStyle; export declare const setTransformerStyle: (style: TransformerConfig) => void; export declare const setHighlighterStyle: (style: RectConfig) => void; export declare const setInnerImageCropTransformerStyle: (style: TransformerConfig) => void; export declare const setOuterImageCropTransformerStyle: (style: TransformerConfig) => void;