import * as THREE from "three"; import * as React from "react"; import * as gm from "gammacv"; import { CBAREvent, CBARMode } from "../CBARTypes"; import { CBARCameraFacing, CBARCameraResolution, CBARContext, CBARFeatureTracking } from "../CBARContext"; import { Point } from "mirada"; import { RenderOptions } from "../components"; export declare type CBARMediaInfo = { width: number; height: number; }; declare type CBARMediaViewProps = { onMediaReady: (view: CBARMediaView) => void; onMediaUpdated: (view: CBARMediaView, info: CBARMediaInfo) => void; }; declare enum CBARMediaViewErrorCode { PermissionDenied = "PermissionDenied" } declare enum CBARMediaViewErrorLevel { Message = 0, Warning = 1, Critical = 2 } declare type CBARMediaViewError = { code: CBARMediaViewErrorCode; message?: string; level: CBARMediaViewErrorLevel; }; declare type CBARMediaViewState = { error?: CBARMediaViewError; hasCameraAccess?: boolean; }; export declare class CBARMediaView extends React.Component { private container; canvasTexture: THREE.Texture; constructor(props: CBARMediaViewProps); componentDidMount(): void; hasInitialized: boolean; device: import("./Utils").IDeviceInfo; componentDidUpdate(props: CBARMediaViewProps): void; protected getPipeline(input: gm.Tensor): gm.Operation; loadImage(image: HTMLImageElement): void; private _mode; get mode(): CBARMode; startVideoCamera(context: CBARContext, tracking: CBARFeatureTracking, facing: CBARCameraFacing, resolution?: CBARCameraResolution): Promise; stopVideoCamera(): void; private capture; captureImage(): Promise; private _featureTracking; get featureTracking(): CBARFeatureTracking; private _facing; get facing(): CBARCameraFacing; private pipeline?; handleEvent(event: CBAREvent): void; _trackingPoints: Point[]; private orientationControls?; private tryWireOrientationControls; private _hasGyroscope; requestAccelerometer: () => void; update: (renderOptions: RenderOptions) => void; refresh(): void; render(): JSX.Element; } export {};