import React from "react";
import type { EventEmit, EventPayload } from "@almadar/core";
/**
 * QR scan callback payload. Extends `EventPayload` (string-indexed
 * `EventPayloadValue` map) so the result is directly assignable to a
 * render-ui dispatched event payload without re-shaping.
 */
export interface QrScanResult extends EventPayload {
    text: string;
    format: string;
    timestamp: number;
}
export interface QrScannerProps {
    onScan?: (result: QrScanResult) => void;
    scanEvent?: EventEmit<QrScanResult>;
    onError?: (error: Error) => void;
    facingMode?: 'environment' | 'user';
    paused?: boolean;
    showOverlay?: boolean;
    showCameraControls?: boolean;
    fallback?: React.ReactNode;
    className?: string;
}
export declare const QrScanner: React.FC<QrScannerProps>;
