import * as tf from '@tensorflow/tfjs-core'; import * as nodeCanvas from 'canvas'; export declare type BodyPixInternalResolution = number | 'low' | 'medium' | 'high' | 'full'; export declare type BodyPixOutputStride = 32 | 16 | 8; export declare type BodyPixArchitecture = 'ResNet50' | 'MobileNetV1'; export declare type BodyPixQuantBytes = 1 | 2 | 4; export declare type BodyPixMultiplier = 1.0 | 0.75 | 0.50; export declare type ImageType = HTMLCanvasElement | HTMLImageElement | HTMLVideoElement; export declare type NodeImageType = nodeCanvas.Canvas | nodeCanvas.Image; export declare type BodyPixInput = tf.Tensor3D | ImageType; export declare type NodeCanvasGlobalCompositeOperation = 'saturate' | 'clear' | 'copy' | 'destination' | 'source-over' | 'destination-over' | 'source-in' | 'destination-in' | 'source-out' | 'destination-out' | 'source-atop' | 'destination-atop' | 'xor' | 'lighter' | 'multiply' | 'screen' | 'overlay' | 'darken' | 'lighten' | 'color-dodge' | 'color-burn' | 'hard-light' | 'soft-light' | 'difference' | 'exclusion' | 'hue' | 'saturation' | 'color' | 'luminosity'; export declare type PersonSegmentation = { data: Uint8Array; width: number; height: number; pose: Pose; }; export declare type SemanticPersonSegmentation = { data: Uint8Array; width: number; height: number; allPoses: Pose[]; }; export declare type PartSegmentation = { data: Int32Array; width: number; height: number; pose: Pose; }; export declare type SemanticPartSegmentation = { data: Int32Array; width: number; height: number; allPoses: Pose[]; }; export declare interface Padding { top: number; bottom: number; left: number; right: number; } export declare type Part = { heatmapX: number; heatmapY: number; id: number; }; export declare type Vector2D = { y: number; x: number; }; export declare type TensorBuffer3D = tf.TensorBuffer; export declare type PartWithScore = { score: number; part: Part; }; export declare type Keypoint = { score: number; position: Vector2D; part: string; }; export declare type Pose = { keypoints: Keypoint[]; score: number; }; export declare type Color = { r: number; g: number; b: number; a: number; };