import { Annotation } from './Annotation'; import { AnnotationState } from './AnnotationState'; type RGB = `rgb(${number}, ${number}, ${number})`; type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`; type HEX = `#${string}`; export type Color = RGB | RGBA | HEX; export interface DrawingStyle { fill?: Color; fillOpacity?: number; stroke?: Color; strokeOpacity?: number; strokeWidth?: number; } export type DrawingStyleExpression = DrawingStyle | ((annotation: T, state?: AnnotationState) => DrawingStyle | undefined); /** Utility functions **/ export declare const computeStyle: (annotation: T, style: DrawingStyleExpression, state?: AnnotationState) => DrawingStyle; export declare const chainStyles: (applyFirst: DrawingStyleExpression, applySecond: DrawingStyleExpression) => ((a: T, state: AnnotationState) => { fill?: Color; fillOpacity?: number; stroke?: Color; strokeOpacity?: number; strokeWidth?: number; }) | { fill?: Color; fillOpacity?: number; stroke?: Color; strokeOpacity?: number; strokeWidth?: number; }; export {}; //# sourceMappingURL=DrawingStyle.d.ts.map