import React from 'react';
export interface NavigationAwareStationProps {
    /**
     * When set to `true`, each navigation attempt to an external URL will
     * result in a warning by the browser and every in-app navigation will trigger a
     * call to `onNavigate()`.
     */
    restrictNavigation?: boolean;
    /**
     * A callback that can be used to perform some work before navigating. It should
     * return `true` if navigation can continue afterwards or `false` if the navigation
     * attempt should be canceled.
     *
     * __Note:__ the function should be wrapped by a `useCallback` ot avoid unnecessary rendering cycles.
     */
    onNavigate?: () => Promise<boolean> | boolean;
}
/**
 * The `NavigationAwareStation` component can be used by any station that needs to restrict
 * navigation. It allows defining a callback that will be executed which eventually decides
 * whether the navigation should be allowed or not.
 *
 * __Note__: This component will not add any visual effects e.g. loading states or notifications
 * in case a navigation is cancelled. It's the responsibility of the station to perform
 * meaningful visualization of what's going on.
 */
export declare const NavigationAwareStation: React.FC<NavigationAwareStationProps>;
//# sourceMappingURL=NavigationAwareStation.d.ts.map