import React from 'react'; declare type ConditionalCloseFunction any)> = onClose extends (...args: any[]) => any ? onClose : undefined; interface UseCloseWithConfirmState { closeWithConfirm: any)>(func: onClose) => ConditionalCloseFunction; setFormIsDifferent: React.Dispatch>; } export declare const useCloseWithConfirmState: () => UseCloseWithConfirmState; export declare const CloseWithConfirmContext: React.Context; export declare const useCloseWithConfirmContext: () => UseCloseWithConfirmState; export {};