UNPKG

@cardscan.ai/insurance-cardscan-react

Version:

A library that makes it easy to add health insurance card scanning to any web application

18 lines (17 loc) 727 B
import { InternalOptions } from "../types/scanview.types"; import { State } from "xstate"; import { ScanViewContext, ScanViewEvent } from "../scanview/scanViewStateMachine"; export interface MockVideoResult { stream: MediaStream; metadata: { [key: string]: any; }; } export declare const createMockVideoStream: (stateMachineState: State<ScanViewContext, ScanViewEvent>, internalOptions: InternalOptions, size?: { width: number; height: number; }) => Promise<MediaStream>; export declare const setupMockVideo: (stateMachineState: State<ScanViewContext, ScanViewEvent>, internalOptions: InternalOptions, size?: { width: number; height: number; }) => Promise<MockVideoResult>;