import React from 'react'; export type CapabilitySet = ReadonlySet | string[] | Record; interface CapabilityContextValue { has: (capability: string) => boolean; all: (capabilities: string[]) => boolean; any: (capabilities: string[]) => boolean; } export interface CapabilityProviderProps { capabilities: CapabilitySet; children: React.ReactNode; } export declare function CapabilityProvider({ capabilities, children }: CapabilityProviderProps): React.JSX.Element; export declare function useCapabilities(): CapabilityContextValue; export interface CapabilityGateProps { /** Single capability required to render children. */ require?: string; /** All of these capabilities must be present. */ all?: string[]; /** At least one of these capabilities must be present. */ any?: string[]; /** Content rendered when the user lacks the required capabilities. */ fallback?: React.ReactNode; /** Optional negation: render children when capability is ABSENT. */ invert?: boolean; children: React.ReactNode; } export declare function CapabilityGate({ require, all, any, fallback, invert, children }: CapabilityGateProps): React.JSX.Element; export {}; //# sourceMappingURL=capability-gate.d.ts.map