import * as React from 'react'; export interface NavguardExclusion { current: string; next: string; } export interface NavGuardProperties { when: boolean; title: string; txt: string; txtSave: string; txtCancel: string; txtDiscard: string; /** Pass in an array of NavguardExclusions that the Navguard will not trigger when navigating from current to next. */ exclude?: NavguardExclusion[]; onDiscard?: () => void; onCancel?: () => void; onSave?: () => void; } declare const NavGuard: ({ when, exclude, title, txt, txtSave, txtCancel, txtDiscard, onSave, onCancel, onDiscard, }: NavGuardProperties) => React.JSX.Element; export default NavGuard;