import { d as SvgShapeType, m as TransformPoint, n as BoxStyle, o as SelectorStyle, r as ParsedSelector, s as SelectorTransform } from "./selector-types-CZHdvxMr.cjs"; import { t as SupportedTarget } from "./target-types-C27BYOrn.cjs"; import { ImageApiSelector, Selector, W3CAnnotationTarget } from "@iiif/presentation-3"; //#region src/annotation-targets/expand-target.d.ts declare function expandTarget(target: W3CAnnotationTarget | W3CAnnotationTarget[], options?: { typeMap?: Record; domParser?: DOMParser; svgPreprocessor?: (svg: string) => string; loadedStylesheets?: Record; defaultType?: string; styleClass?: string; }): SupportedTarget; //#endregion //#region src/annotation-targets/parse-selector.d.ts declare function parseSelector(source: Selector | Selector[], { domParser, svgPreprocessor, iiifRenderingHints, loadedStylesheets }?: { domParser?: DOMParser; svgPreprocessor?: (svg: string) => string; iiifRenderingHints?: ImageApiSelector; loadedStylesheets?: Record; }, { styleClass }?: { styleClass?: string; }): ParsedSelector; type SelectorElement = { element: SVGElement; points: [number, number][]; shapeType: SvgShapeType; }; declare function isImageApiSelector(t: unknown): t is ImageApiSelector; declare function splitCanvasFragment(originalUrl: string): string[]; declare function isValidCanvasFragment(fragment: string): boolean; /** * Parse rotation "90", "180", "!90" */ declare function parseRotation(input: string): number; //#endregion //#region src/annotation-targets/css-selectors.d.ts declare function parseCssToBoxStyleMap(css: string): Record; declare function convertSelectorStyleToBoxStyle(style?: SelectorStyle): BoxStyle; declare function convertBoxStyleToSelectorStyle(style: BoxStyle): SelectorStyle; declare function parseCssTransformOrigin(transformOrigin?: string): TransformPoint | undefined; declare function parseCssTransform(transform?: string): SelectorTransform; declare function parseCssTransformStyle(style?: BoxStyle): SelectorTransform; declare function getSelectorTransformAttributes(style?: BoxStyle): Partial<{ rotation: number; rotationOrigin: TransformPoint; translate: TransformPoint; transform: SelectorTransform; }>; declare function cachedParseCssToBoxStyleMap(id: string, css: string): Record; declare function resolveSelectorStyle(styleClass?: string, loadedStylesheets?: Record, existingStyle?: SelectorStyle): BoxStyle; //#endregion export { parseCssToBoxStyleMap as a, parseCssTransformStyle as c, isImageApiSelector as d, isValidCanvasFragment as f, expandTarget as g, splitCanvasFragment as h, getSelectorTransformAttributes as i, resolveSelectorStyle as l, parseSelector as m, convertBoxStyleToSelectorStyle as n, parseCssTransform as o, parseRotation as p, convertSelectorStyleToBoxStyle as r, parseCssTransformOrigin as s, cachedParseCssToBoxStyleMap as t, SelectorElement as u }; //# sourceMappingURL=annotation-targets-BdYwwKPA.d.cts.map