import { type AccessGranularPermission } from "@gooddata/sdk-model"; import { type IUiLabelsChecklistItem } from "../UiLabelsChecklist/UiLabelsChecklist.js"; import { type PermissionMenuLevel } from "../UiPermissionMenu/UiPermissionMenu.js"; /** * @internal */ export interface IUiGranteeRowControlsProps { /** * Locked items are always treated as selected. Label access is offered unless the only * labels are primary ones. */ labels: ReadonlyArray; selectedLabelIds: ReadonlyArray; /** The grantee's current permission level — anchors the permission menu. */ permissionLevel: AccessGranularPermission; /** * CONTRACT: set to the INHERITED level whenever inheritance — from a group or a * parent workspace — is what decides this row's level: either it outranks the grant * made here, or there is no local grant at all and the whole level is inherited (then * it equals `permissionLevel`, VIEW included). The control renders the warning badge * whenever this is set and does not re-check the ordering. Undefined when the level * granted here already is the effective one. */ effectivePermission?: AccessGranularPermission; /** Levels rendered disabled in the permission menu — see {@link UiPermissionMenu}. */ disabledLevels?: ReadonlyArray; /** Tooltip shown on disabled level rows in place of the level's info text. */ disabledTooltip?: string; /** Per-level override of `disabledTooltip` — see {@link UiPermissionMenu}. */ disabledLevelTooltips?: Partial>; onLabelsChange: (selectedIds: string[]) => void; onPermissionChange: (level: PermissionMenuLevel) => void; onRemoveAccess?: () => void; /** * Renders Remove access disabled instead of hiding it — e.g. for a grantee whose * access is inherited, so there is no grant here to revoke. */ isRemoveDisabled?: boolean; /** Tooltip shown on Remove access while it is disabled. */ removeDisabledTooltip?: string; /** Disables the permission trigger, e.g. while the row's change is saving. */ isDisabled?: boolean; dataTestId?: string; } /** * Per-row controls in the OLP share dialog: the permission dropdown * ({@link UiPermissionMenu}) hosting the level choice, the labels drill-in and * Remove access, with an optional inherited-permission warning badge. * * @internal */ export declare function UiGranteeRowControls({ labels, selectedLabelIds, permissionLevel, effectivePermission, disabledLevels, disabledTooltip, disabledLevelTooltips, onLabelsChange, onPermissionChange, onRemoveAccess, isRemoveDisabled, removeDisabledTooltip, isDisabled, dataTestId, }: IUiGranteeRowControlsProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=UiGranteeRowControls.d.ts.map