import { EventEmitter } from '../../stencil-public-runtime'; import { CamOrientation } from '../../utils/webcam.types'; import { CamMode } from './types'; /** * Camera component, this is the main component. */ export declare class CameraComponent { el: HTMLCameraComponentElement; /** Event emitted when snap */ picture: EventEmitter; /** Event emitted when cam stop */ webcamStop: EventEmitter; /** Event emitted when back button is pushed */ backButton: EventEmitter; /** If true, shows image preview when snap */ showPreview: boolean; /** If true, allows taking picture from gallery */ allowGallery: boolean; /** If true, stops cam when back button is pushed */ backButtonStopCam: boolean; /** Camera selected * - user: front camera * - environtment: back camera */ orientation: CamOrientation; camMode?: CamMode; isRenderCam: boolean; camController: HTMLCameraControllerElement; imageInput: HTMLInputElement; modal: HTMLIonModalElement; isStarted: boolean; componentDidLoad(): void; onResize(): void; /** * Method to open the camera * @param camMode Defaults to embedded * @returns void */ start(camMode?: CamMode): Promise; /** * Method to stop the camera * @returns void */ stop(): Promise; /** * https://github.com/ionic-team/ionic-framework/issues/new?assignees=&labels=&template=bug_report.md&title=bug%3A+ */ renderCam(): any; render(): any; }