import type { Detection } from "#types/detections"; import { type InteractionPresentation, type InteractionStyle, type InteractionStyleContext } from "#types/interaction-style"; import type { DetectionStylePredicate } from "#types/style"; export interface BaseInteractionStyleOptions { /** * Presentation applied to hovered detections. Uses the same style objects as * the base renderer presentation. */ readonly hovered?: InteractionPresentation | null; /** * Presentation applied to selected detections. Uses the same style objects as * the base renderer presentation. */ readonly selected?: InteractionPresentation | null; /** * Return false to skip rendering an interaction highlight. */ readonly shouldRender?: DetectionStylePredicate; } /** * Default configurable interaction style. * * It resolves hover and selected picks into state-specific presentations using * the same style contracts as normal boxes, masks, and labels. A state left * unconfigured falls back to a highlight rectangle over the detection. */ export declare class BaseInteractionStyle implements InteractionStyle { protected readonly options: BaseInteractionStyleOptions; constructor(options?: BaseInteractionStyleOptions); resolve(detection: Detection, context: InteractionStyleContext): InteractionPresentation | undefined; } //# sourceMappingURL=interaction-style.d.ts.map