import type { CanonicalAnnotation } from '@mango-iiif/w3c-parser'; import { type ChapterDrawingAnnotation } from '../core/types/story'; import type { ResolvedAnnotation } from '../iiif/annotationResolver'; /** * Appearance a drawing has when it has not said otherwise. * * Exported because the reader needs the same three values: a stylesheet always * spells out colour, width and fill, so without knowing which spellings mean * "unspecified" every drawing would come back from a round trip carrying three * properties its author never set. */ export declare const DEFAULT_DRAWING_COLOR = "#e07a3f"; export declare const DEFAULT_DRAWING_STROKE_WIDTH = "medium"; export declare const DEFAULT_DRAWING_FILL_MODE = "transparent"; /** Fill alpha that marks a shape as unfilled rather than solid. */ export declare const DRAWING_TRANSPARENT_FILL_ALPHA = 0.16; /** * Builds the canonical W3C document used by both live story authoring and * story export. Story state remains the compact persistence format, but it no * longer has a second annotation interpretation. */ export declare const storyDrawingDocument: (drawing: ChapterDrawingAnnotation, canvasId: string, annotationId?: string) => CanonicalAnnotation | null; export declare const storyDrawingToResolved: (drawing: ChapterDrawingAnnotation, canvasId: string, preferredLanguages: readonly string[]) => ResolvedAnnotation | null;