document-scanner-vue
Version:
Vue 3 Document Scanner with OpenCV.js - Mobile optimized with camera/gallery support
18 lines • 704 B
TypeScript
import { type Ref } from 'vue';
export interface FileInputOptions {
onFilesSelected: (files: File[]) => void;
isOpenCVReady: () => boolean;
cameraInputRef: Ref<HTMLInputElement | null>;
galleryInputRef: Ref<HTMLInputElement | null>;
}
export declare function useFileInput(options: FileInputOptions): {
isProcessing: Readonly<Ref<boolean, boolean>>;
handleDirectFileChange: (event: Event) => void;
handleFilesSelected: (newFiles: File[]) => Promise<void>;
setupInputListeners: () => void;
cleanup: () => void;
triggerCameraInput: () => void;
triggerGalleryInput: () => void;
validateDependencies: () => boolean;
};
//# sourceMappingURL=useFileInput.d.ts.map