import { BoxShape } from "#types/box-style"; import type { FocusDrawInstruction, FocusFallbackStyle, FocusFillStyle, FocusStyle, FocusStyleContext, FocusStyleValue } from "#types/focus-style"; import { FocusTargetMode } from "#types/focus-style"; export interface BaseFocusStyleOptions { /** Opt into bounded fades, including on still or paused media. Nonpositive or non-finite values apply changes immediately. */ readonly transitionDurationMs?: FocusStyleValue; /** * Which interaction state should keep the media undimmed. */ readonly targetMode?: FocusTargetMode; /** * Full-frame dim overlay. Pass `null` or return false from `shouldRender` to * disable focus rendering. */ readonly fill?: FocusStyleValue | null>; /** * Rectangle fallback geometry. Pass null to focus only actual masks, * polygons, and visible heatmap regions. */ readonly shape?: FocusStyleValue; /** * Rounded-rectangle fallback corner radius in media pixels. */ readonly cornerRadius?: FocusStyleValue; readonly shouldRender?: (context: FocusStyleContext) => boolean; } /** * Default configurable focus style. * * Focus styles dim the current media frame while leaving the selected or * hovered detections visible. Renderers may use prepared mask artifacts for * shape-accurate cutouts, falling back to detection rectangles when needed. */ export declare class BaseFocusStyle implements FocusStyle { protected readonly options: BaseFocusStyleOptions; readonly transitionDurationMs: FocusStyleValue | undefined; constructor(options?: BaseFocusStyleOptions); resolve(context: FocusStyleContext): FocusDrawInstruction | undefined; protected resolveFallback(context: FocusStyleContext): FocusFallbackStyle | null; } //# sourceMappingURL=focus-style.d.ts.map