import type { ReactNode } from 'react';
import type { CanPerformDashboardOperation } from '../../types';
interface WidgetDashboardPolicyProps {
    /**
     * Answers whether the dashboards below may perform an operation.
     */
    canPerform: CanPerformDashboardOperation;
    /**
     * Subtree the policy governs.
     */
    children: ReactNode;
}
/**
 * Governs the dashboards below it. Mount it around one dashboard, a group,
 * or the whole application. Nested policies compose restrictively: an
 * operation is allowed only when every enclosing policy allows it. Without
 * a policy, every operation is allowed.
 *
 * @param {WidgetDashboardPolicyProps} props Component props.
 */
export declare function WidgetDashboardPolicy({ canPerform, children, }: WidgetDashboardPolicyProps): import("react").JSX.Element;
/**
 * Reads the policy in effect; `null` when none is mounted.
 */
export declare function useDashboardPolicy(): CanPerformDashboardOperation | null;
export {};
//# sourceMappingURL=dashboard-policy.d.ts.map