import type { ChangeEvent, FocusEvent } from 'react'; import type { InputProps } from '../Input'; import type { OmitStrict } from '../../types'; export interface ScannerProps extends OmitStrict { /** Current value of the input. */ value?: string; /** Called when the user types into the input. Not fired for scans — see `onScan`. */ onChange?: (value: string, event: ChangeEvent) => void; /** Called when a barcode or QR code is successfully scanned. */ onScan?: (value: string) => void; /** Called on the input's blur event. */ onBlur?: (event: FocusEvent) => void; /** * Optional native scan handler. When provided, it is invoked in place of the * web-camera fallback — allowing host apps to wire in a platform-native * barcode scanner. Should resolve with the scanned value. */ nativeScan?: () => Promise; } export default function Scanner({ value, onChange, onScan, onBlur, disabled, readOnly, info, status, nativeScan, ...inputProps }: ScannerProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=Scanner.d.ts.map