import { type BoxStyle } from "supervision-js-core"; import type { BufferedDetectionTimeline } from "supervision-js-core"; import type { DetectionFrame } from "supervision-js-core"; import type { AnnotationStyleContext, Detection, Rect } from "supervision-js-core"; import type { Graphics as PixiGraphics } from "pixi.js"; import type { Container as PixiContainer } from "pixi.js"; export interface PixiBoxLayerState { /** The frame this layer resolved and drew. The timeline's answer for one * media time moves when a load lands, so this is the only record of which * frame the screen actually got. */ readonly activeDetectionFrame: DetectionFrame | undefined; readonly activeDetectionFrameTime: number | null; readonly activeDetectionFrameIndex: number | null; readonly activeDetectionCount: number; readonly activeDetectionIndexes: readonly number[]; } export interface PixiRenderedBoxFrame { readonly frame: DetectionFrame; readonly rects: ReadonlyMap; } export interface PixiBoxLayer { createContainer(): PixiContainer | undefined; attachGraphics(graphics: PixiGraphics): void; drawFrame(mediaTime: number, viewportScale?: number): PixiBoxLayerState; getRenderedBoxes(): PixiRenderedBoxFrame | undefined; setBoxStyle(boxStyle: BoxStyle | null | undefined): void; invalidate(): void; invalidateDetection(id: string | number): void; translateDetection(id: string | number, x: number, y: number): boolean; } export declare function createPixiBoxLayer(options: { readonly detectionTimeline: BufferedDetectionTimeline; readonly boxStyle: BoxStyle | null | undefined; readonly Container?: new () => PixiContainer; readonly container?: PixiContainer; /** Ordered rendering retains each frame detection independently of its public ID. */ readonly retainByIndex?: boolean; readonly Graphics?: new () => PixiGraphics; readonly resolveContextState?: (detection: Detection) => Partial; }): PixiBoxLayer; //# sourceMappingURL=pixi-box-layer.d.ts.map