import { CameraConfig, PhotoCaptureAppConfig } from '@monkvision/types'; import { UploadEventHandlers } from './useUploadQueue'; /** * Props passed to the useAdaptiveCameraConfig hook. */ export type UseAdaptiveCameraConfigOptions = Pick & { /** * The camera config passed as a prop to the PhotoCapture component. */ initialCameraConfig: CameraConfig; }; /** * Handle used to manage the adaptive camera configuration. */ export interface AdaptiveCameraConfigHandle { /** * The resulting camera configuration, that adapts itself automatically if asked. */ adaptiveCameraConfig: Required; /** * A set of event handlers listening to upload events. */ uploadEventHandlers: UploadEventHandlers; } /** * Custom hook used to adapt the camera configuration of the PhotoCapture component based on various things suchs as * connection quality etc. */ export declare function useAdaptiveCameraConfig({ initialCameraConfig, useAdaptiveImageQuality, }: UseAdaptiveCameraConfigOptions): AdaptiveCameraConfigHandle;