import type { BufferedDetectionTimeline } from "supervision-js-core"; import type { AnnotationStyleContext, Detection, LabelStyle, Rect, DetectionPickPoint, DetectionPickResult } from "supervision-js-core"; import type { Container as PixiContainer, Filter as PixiFilter, Graphics as PixiGraphics, Text as PixiText } from "pixi.js"; import type { PixiRenderedBoxFrame } from "./pixi-box-layer"; export interface PixiLabelLayerOptions { readonly Container: new () => PixiContainer; readonly Graphics: new () => PixiGraphics; readonly Text: new (options: { text?: string; style?: unknown; }) => PixiText; readonly detectionTimeline: BufferedDetectionTimeline; readonly labelStyle: LabelStyle | undefined; readonly getRenderedBoxes?: () => PixiRenderedBoxFrame | undefined; readonly resolveContextState?: (detection: Detection) => Partial; } export interface PixiLabelLayer { createContainer(): PixiContainer; drawFrame(mediaTime: number, viewportScale?: number): void; /** Draw a transient creation label with the same style as committed data. */ drawCreationPreview(detection: Detection | null, mediaTime: number, viewportScale?: number, renderedBox?: Rect): void; updateEditingBox(id: string | number, renderedBox: Rect | undefined, preview?: Detection | null): void; setLabelStyle(labelStyle: LabelStyle | null): void; setBackgroundAntialiasFilter(filter: PixiFilter | null): void; translateDetection(id: string | number, x: number, y: number): boolean; getDetectionLabelBounds(id: string | number): { readonly x: number; readonly y: number; readonly width: number; readonly height: number; } | null; pickDetectionAtPoint(point: DetectionPickPoint, mediaTime: number): DetectionPickResult | null; destroy(): void; } export declare function createPixiLabelLayer({ Container, Graphics, Text, detectionTimeline, labelStyle, getRenderedBoxes, resolveContextState, }: PixiLabelLayerOptions): PixiLabelLayer; //# sourceMappingURL=pixi-label-layer.d.ts.map