import { Snippet } from 'svelte'; import { Rotation } from '@embedpdf/models'; import { TextSelectionStyle, MarqueeSelectionStyle } from '../../lib/index.ts'; import { SelectionSelectionMenuRenderFn, SelectionSelectionMenuProps } from '../types'; interface SelectionLayerProps { /** Document ID */ documentId: string; /** Index of the page this layer lives on */ pageIndex: number; /** Scale of the page (optional, defaults to document scale) */ scale?: number; /** Rotation of the page (optional, defaults to document rotation) */ rotation?: Rotation; /** * @deprecated Use `textStyle.background` instead. * Background color for selection rectangles. */ background?: string; /** Styling options for text selection highlights */ textStyle?: TextSelectionStyle; /** Styling options for the marquee selection rectangle */ marqueeStyle?: MarqueeSelectionStyle; /** Optional CSS class applied to the marquee rectangle */ marqueeClass?: string; /** Render function for selection menu (schema-driven approach) */ selectionMenu?: SelectionSelectionMenuRenderFn; /** Snippet for custom selection menu (slot-based approach) */ selectionMenuSnippet?: Snippet<[SelectionSelectionMenuProps]>; } declare const SelectionLayer: import('svelte', { with: { "resolution-mode": "import" } }).Component; type SelectionLayer = ReturnType; export default SelectionLayer;