import type { Detection } from "#types/detections"; import { BoxShape, type BoxDrawInstruction, type BoxFillStyle, type BoxStrokeStyle, type BoxStyle, type BoxStyleContext } from "#types/box-style"; import type { DetectionStylePredicate, DetectionStyleValue } from "#types/style"; export interface BaseBoxStyleOptions { /** * Box geometry. Pass a resolver for per-class or per-state shape changes. */ readonly shape?: DetectionStyleValue; /** * Rounded rectangle corner radius in media pixels. */ readonly cornerRadius?: DetectionStyleValue; /** * Box stroke. Pass `null` to disable strokes, or a resolver for per-detection * stroke styling. */ readonly stroke?: DetectionStyleValue | null, BoxStyleContext>; /** * Optional box fill. Pass a resolver for per-class or confidence-aware fills. */ readonly fill?: DetectionStyleValue | null, BoxStyleContext>; /** * Return false to skip rendering a detection in this box style. */ readonly shouldRender?: DetectionStylePredicate; } /** * Default configurable box style. * * This is the simplest `supervision-js` equivalent of a box annotator: it * converts detections with `rect` geometry into renderer-neutral box draw * instructions. Use options such as `shape`, `cornerRadius`, `stroke`, and * `fill` for static or per-detection styling. */ export declare class BaseBoxStyle implements BoxStyle { protected readonly options: BaseBoxStyleOptions; constructor(options?: BaseBoxStyleOptions); resolve(detection: Detection, context: BoxStyleContext): BoxDrawInstruction | undefined; protected resolveShape(detection: Detection, context: BoxStyleContext): BoxShape; protected resolveCornerRadius(detection: Detection, context: BoxStyleContext, shape: BoxShape): number | undefined; protected resolveStroke(detection: Detection, context: BoxStyleContext): BoxStrokeStyle | undefined; protected resolveFill(detection: Detection, context: BoxStyleContext): BoxFillStyle | undefined; } //# sourceMappingURL=box-style.d.ts.map