// Types for papertooth/react. import type { ComponentPropsWithRef, ElementType, InputHTMLAttributes, CSSProperties, ReactNode, ReactElement, Ref } from 'react'; import type { Options, Kit, HighlightStyle, OutlineStyle, Weekday, StampUnit, StampPart } from 'papertooth'; export type HighlighterColor = 'yellow' | 'pink' | 'green' | 'orange' | 'blue'; export type Tool = 'pen' | 'ballpoint' | 'brush' | 'marker' | 'graphite' | 'pencil'; export type AnnoStyle = 'circle' | 'box' | 'strike' | 'cross' | 'under' | 'hatch' | 'hanamaru' | 'x'; /** Start papertooth when the component mounts and stop it when it unmounts. Options are read once. */ export declare function usePapertooth(options?: Options): Kit | null; /** Drop-in for a layout: starts the script for the whole page. Renders nothing. */ export declare function Papertooth(props: Options): null; // the element's own props, ref included, so is typed for the element it renders type As = P & { as?: E } & Omit, keyof P | 'as'>; export type BtnProps = As; /** A highlighter button, or an outlined one. Renders an when given href, otherwise a