import { PhotoCaptureAppConfig } from '@monkvision/types'; import { UploadEventHandlers } from './useUploadQueue'; /** * Parameters accepted by the useBadConnectionWarning hook. */ export type BadConnectionWarningParams = Required>; /** * Handle used to manage the bad connection warning displayed to the user when uploads are failing. */ export interface BadConnectionWarningHandle { /** * Boolean indicating if the bad connection warning pop-up should be displayed or not. */ isBadConnectionWarningDialogDisplayed: boolean; /** * Callback called when the user closes the bad connection warning modal. */ closeBadConnectionWarningDialog: () => void; /** * A set of event handlers listening to upload events. */ uploadEventHandlers: UploadEventHandlers; } /** * Custom hook used to handle the state managing the dialog displayed to the user when he has a bad connection. */ export declare function useBadConnectionWarning({ maxUploadDurationWarning, }: BadConnectionWarningParams): BadConnectionWarningHandle;