import type { SerializableMaskInstruction } from "#render-preparation/mask-preparation-worker-protocol"; import type { PreparedIdMaskPlane, PreparedRegionMaskCoverageFrame, PreparedMaskScreenStroke } from "#render-preparation/mask-frame-artifact"; import { type IdMaskFrame } from "supervision-js-core"; export { MAX_ID_MASK_PALETTE_ENTRIES, MAX_ID_MASK_STROKE_WIDTH, createIdMaskFrame, type IdMaskFrame, } from "supervision-js-core"; export interface CompositedMaskFrame { readonly data: Uint8ClampedArray; readonly height: number; readonly width: number; } /** Builds compact, independent alpha crops so overlapping masks stay exact. */ export declare function createRegionMaskCoverageFrame(instructions: readonly SerializableMaskInstruction[]): PreparedRegionMaskCoverageFrame | undefined; export declare function compositeMaskFrame(instructions: readonly SerializableMaskInstruction[], displayWidth?: number): CompositedMaskFrame | undefined; export declare function createIdMaskRasterFrame(instructions: readonly SerializableMaskInstruction[], maxRasterWidth?: number): IdMaskFrame | undefined; /** * Whether the palette has a slot for every detection this frame masks. An id * names a detection by its index in the frame, so one masked detection past the * last slot leaves the whole frame without an id raster however few masks it * carries. */ export declare function canIdMaskPaletteNameFrame(instructions: readonly SerializableMaskInstruction[]): boolean; export declare function createIdMaskPlane(instructions: readonly SerializableMaskInstruction[], maxRasterWidth?: number): PreparedIdMaskPlane | undefined; export declare function createMaskScreenStrokes(instructions: readonly SerializableMaskInstruction[], width: number, height: number, preparedRaster?: Uint8Array): readonly PreparedMaskScreenStroke[] | undefined; //# sourceMappingURL=mask-frame-compositor.d.ts.map