import type { InjectedMeshConstructor, InjectedMeshGeometryConstructor, InjectedShaderFactory } from "#renderers/injected-pixi"; import type { PreparedIdMaskFrame } from "#render-preparation/mask-frame-artifact"; import type { ImageSource as PixiImageSource, Mesh as PixiMesh, MeshGeometry as PixiMeshGeometry, Shader as PixiShader, Texture as PixiTexture, UniformGroup as PixiUniformGroup } from "pixi.js"; type PixiIdMaskMesh = PixiMesh; type ImageSourceConstructor = new (options: { autoGenerateMipmaps?: boolean; dynamic: boolean; height: number; resource: HTMLCanvasElement; scaleMode?: "linear" | "nearest"; width: number; }) => PixiImageSource; type UniformGroupConstructor = new (uniforms: Record" | "vec4"; value: Float32Array; }>) => PixiUniformGroup; /** Paint is independent of whether coverage is a dense ID plane or a packed binary crop. */ export type PixiIdMaskPaint = Pick & { /** Explicit-unit outlines use the same source-over fill composition as vector strokes. */ readonly strokeOverFill?: boolean; }; export interface PixiIdMaskShaderRenderer { readonly mesh: PixiIdMaskMesh; clearTexture(): void; releaseTexture(source: PixiImageSource): void; hide(): void; render(frame: PixiIdMaskPaint, texture: PixiTexture, strokePixelRatio?: number): void; setOpacity(opacity: number): void; setStrokePixelRatio(pixelRatio: number): void; destroy(): void; } export declare function createPixiIdMaskShaderRenderer(options: { readonly ImageSource: ImageSourceConstructor; readonly Mesh: InjectedMeshConstructor; readonly MeshGeometry: InjectedMeshGeometryConstructor; readonly Shader: InjectedShaderFactory; readonly UniformGroup: UniformGroupConstructor; readonly mediaHeight: number; readonly mediaWidth: number; /** Independent one-bit coverage uses ID 1 with the same paint/outline shader. */ readonly packedCoverage?: boolean; }): PixiIdMaskShaderRenderer; export {}; //# sourceMappingURL=pixi-id-mask-shader.d.ts.map