import { EntityAttrPermissionValue } from "@cuba-platform/rest"; import * as React from "react"; interface AttrPermAccessControlProps { entityName: string; attrName: string; /** * Required attribute permission. Defaults to `VIEW`. */ requiredAttrPerm?: Exclude; /** * See {@link EntityPermAccessControlProps.mode} */ mode?: 'hide' | 'disable'; /** * See {@link EntityPermAccessControlProps.disabledPropName} */ disabledPropName?: string; /** * See {@link EntityPermAccessControlProps.disabledPropValue} */ disabledPropValue?: any; /** * See {@link AccessControlProps.render} * * @param disabled */ render?: (disabled: boolean) => React.ReactNode; } /** * This component can be used to conditionally render other components (which we call access-controlled components) * based on a single entity attribute permission. * * @param props */ export declare const AttrPermAccessControl: (props: React.PropsWithChildren) => JSX.Element; export {};