import { WindowQueryCloseRequest } from '../../components/WindowBase/contexts/WindowToolsMFContext/types';
export type UseWindowCloseGuardParams = {
    confirmMessage: string;
    confirmTitle: string;
    isDirty: boolean;
    linkToCloseWindow?: boolean;
    onAfterClose?: () => void;
    onCancelClose?: (request?: WindowQueryCloseRequest) => void;
    onConfirmClose?: (request?: WindowQueryCloseRequest) => void;
};
export type UseWindowCloseGuardResult = {
    requestClose: (request?: WindowQueryCloseRequest) => void;
};
/**
 * Provide a reusable guarded-close flow that can also register itself as the window close handler.
 */
export declare const useWindowCloseGuard: ({ confirmMessage, confirmTitle, isDirty, linkToCloseWindow, onAfterClose, onCancelClose, onConfirmClose, }: UseWindowCloseGuardParams) => UseWindowCloseGuardResult;
//# sourceMappingURL=index.d.ts.map