import type { BoxFillStyle, BoxStrokeStyle } from "#types/box-style"; import type { Detection } from "#types/detections"; import type { OrientedBoxDrawInstruction, OrientedBoxStyle, OrientedBoxStyleContext } from "#types/oriented-box-style"; import type { DetectionStylePredicate, DetectionStyleValue } from "#types/style"; export interface BaseOrientedBoxStyleOptions { /** * Optional fill. Pass `null` to disable it, or a resolver for per-class or * confidence-aware fills. */ readonly fill?: DetectionStyleValue | null, OrientedBoxStyleContext>; /** * Stroke. Pass `null` to disable strokes, or a resolver for per-detection * stroke styling. */ readonly stroke?: DetectionStyleValue | null, OrientedBoxStyleContext>; /** Return false to skip rendering a detection in this style. */ readonly shouldRender?: DetectionStylePredicate; } /** * Default configurable oriented-box style. * * Converts detections carrying explicit `orientedBox` quadrilateral geometry * into a renderer-neutral closed-path draw instruction, the same fill/stroke * shape `BasePolygonStyle` produces. A quadrilateral is skipped, rather than * emitted as an invalid or degenerate draw instruction, when it has fewer * or more than four vertices, a non-finite (NaN/Infinity) coordinate, or exactly * zero area (`polygonArea` already returns 0 for fewer than three points). * There is no near-zero/epsilon tolerance; only exact zero area is rejected. */ export declare class BaseOrientedBoxStyle implements OrientedBoxStyle { private readonly options; constructor(options?: BaseOrientedBoxStyleOptions); resolve(detection: Detection, context: OrientedBoxStyleContext): OrientedBoxDrawInstruction | undefined; } //# sourceMappingURL=oriented-box-style.d.ts.map