/* eslint-disable */ /* tslint:disable */ /** * This is an autogenerated file created by the Stencil compiler. * It contains typing information for all components that exist in this project. */ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime"; import { CameraDirection } from "./utils/camera.service"; import { DetectionImg } from "./utils/facepi.service"; import { FaceLandmarkerResult } from "@mediapipe/tasks-vision"; import { InputScanData } from "./components/input-scan-reader/input-scan-reader.types"; export { CameraDirection } from "./utils/camera.service"; export { DetectionImg } from "./utils/facepi.service"; export { FaceLandmarkerResult } from "@mediapipe/tasks-vision"; export { InputScanData } from "./components/input-scan-reader/input-scan-reader.types"; export namespace Components { interface InputFaceApiWebcam { "detectionTimer"?: number; "facingMode"?: CameraDirection; "getBlobImageDescriptors": (blob: Blob) => Promise; "getFaceLandMarks": () => Promise; "height"?: number; "scoreThreshold"?: number; "startDetection": () => Promise; "stopDetection": () => Promise; "width"?: number; } interface InputFileFromWebcam { /** * you can pass a function and override the canvas.drawImage function so you can change the image adding filters or any kind of magin in your image you just need to crear a function with all canvas.-drawImage arguments here you have the list of vars you get: videoElement, left, top, imgSize, imgSize, 0,0, canvas.width, canvas.height */ "drawImageCb"?: Function; /** * FacingModel optiones following https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints/facingMode#value */ "facingMode"?: CameraDirection; "height"?: number; "resetCamera": () => Promise; "takePic": () => Promise; "toggleCamera": () => Promise; "width"?: number; } interface InputScanReader { "getData": () => Promise; "getText": () => Promise; "modalTimer"?: number; } } export interface InputFaceApiWebcamCustomEvent extends CustomEvent { detail: T; target: HTMLInputFaceApiWebcamElement; } export interface InputFileFromWebcamCustomEvent extends CustomEvent { detail: T; target: HTMLInputFileFromWebcamElement; } export interface InputScanReaderCustomEvent extends CustomEvent { detail: T; target: HTMLInputScanReaderElement; } declare global { interface HTMLInputFaceApiWebcamElement extends Components.InputFaceApiWebcam, HTMLStencilElement { } var HTMLInputFaceApiWebcamElement: { prototype: HTMLInputFaceApiWebcamElement; new (): HTMLInputFaceApiWebcamElement; }; interface HTMLInputFileFromWebcamElement extends Components.InputFileFromWebcam, HTMLStencilElement { } var HTMLInputFileFromWebcamElement: { prototype: HTMLInputFileFromWebcamElement; new (): HTMLInputFileFromWebcamElement; }; interface HTMLInputScanReaderElement extends Components.InputScanReader, HTMLStencilElement { } var HTMLInputScanReaderElement: { prototype: HTMLInputScanReaderElement; new (): HTMLInputScanReaderElement; }; interface HTMLElementTagNameMap { "input-face-api-webcam": HTMLInputFaceApiWebcamElement; "input-file-from-webcam": HTMLInputFileFromWebcamElement; "input-scan-reader": HTMLInputScanReaderElement; } } declare namespace LocalJSX { interface InputFaceApiWebcam { "detectionTimer"?: number; "facingMode"?: CameraDirection; "height"?: number; "onFaceDetected"?: (event: InputFaceApiWebcamCustomEvent) => void; "onFaceStopDetection"?: (event: InputFaceApiWebcamCustomEvent) => void; "scoreThreshold"?: number; "width"?: number; } interface InputFileFromWebcam { /** * you can pass a function and override the canvas.drawImage function so you can change the image adding filters or any kind of magin in your image you just need to crear a function with all canvas.-drawImage arguments here you have the list of vars you get: videoElement, left, top, imgSize, imgSize, 0,0, canvas.width, canvas.height */ "drawImageCb"?: Function; /** * FacingModel optiones following https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints/facingMode#value */ "facingMode"?: CameraDirection; "height"?: number; "onFacingModeChanged"?: (event: InputFileFromWebcamCustomEvent) => void; "onPictureTaken"?: (event: InputFileFromWebcamCustomEvent) => void; "width"?: number; } interface InputScanReader { "modalTimer"?: number; "onScan"?: (event: InputScanReaderCustomEvent) => void; } interface IntrinsicElements { "input-face-api-webcam": InputFaceApiWebcam; "input-file-from-webcam": InputFileFromWebcam; "input-scan-reader": InputScanReader; } } export { LocalJSX as JSX }; declare module "@stencil/core" { export namespace JSX { interface IntrinsicElements { "input-face-api-webcam": LocalJSX.InputFaceApiWebcam & JSXBase.HTMLAttributes; "input-file-from-webcam": LocalJSX.InputFileFromWebcam & JSXBase.HTMLAttributes; "input-scan-reader": LocalJSX.InputScanReader & JSXBase.HTMLAttributes; } } }