import { type ReactNode } from 'react'; import { type UIStrings } from '../components/Provider.js'; export declare const ACCESS_STRINGS: { title: string; /** Under the title: the resource, and who has a role on it. */ summary: (resource: string, people: number, groups: number, everyone: boolean) => string; /** Names the switch between the two ways of listing who has access. */ arrange: string; byRole: string; byPrincipal: string; filter: string; grantAccess: string; privileged: string; loading: string; /** Who holds a role: "1 person, 2 groups". */ holders: (people: number, groups: number) => string; /** How many of a role's holders a filter left. */ holdersShown: (shown: number, total: number) => string; members: (n: number) => string; people: (n: number) => string; /** Everyone, where it is short: a tag or a picker row. */ everyone: string; /** Everyone, where it stands as a row of its own. */ everyoneInOrganization: string; everyoneJoinLater: string; owner: string; /** Under the owner section and row. */ ownerDescription: string; /** Read with the badges a row folds away: "+2". */ moreRoles: (n: number) => string; moreRolesLabel: (roles: readonly string[]) => string; /** Beside someone whose other role gives everything this one does. */ coveredBy: (roles: readonly string[]) => string; /** Beside the owner, who has every role's permissions anyway. */ ownerHasAll: string; /** Beside someone who has this through everyone as well. */ everyoneHasThisToo: string; /** Beside someone who has this through their groups, or an inherited role, as well. */ throughToo: (from: readonly string[]) => string; /** A role someone holds that another of their roles already gives. */ redundant: (roles: readonly string[]) => string; redundantOwner: string; /** A role someone has only because everyone does. */ throughEveryone: string; /** A role someone has through one of their groups, or an inherited role. */ through: (from: string) => string; /** A role granted somewhere else, which can't be removed here. */ inheritedFrom: (from: string) => string; removeRole: (principal: string, role: string) => string; grantMoreRoles: string; removeAllAccess: string; removeTitle: (principal: string, roles: readonly string[]) => string; removeAllTitle: (principal: string) => string; /** Heads the list of what is lost; `members` is undefined when a group's size isn't known. */ losesIntro: (kind: 'user' | 'group' | 'everyone', members: number | undefined) => string; /** After the list: what they keep, their own roles and those through their groups, inherited * roles or everyone. Empty when they keep nothing. */ keeps: (own: readonly string[], throughEveryone: readonly string[], through: readonly { from: string; roles: readonly string[]; }[]) => string; /** When the roles they keep give everything the removed ones did. */ losesNothing: (roles: readonly string[]) => string; ownerLosesNothing: string; confirmRemove: (roles: readonly string[]) => string; removeFailed: (principal: string, roles: readonly string[]) => string; grantFailed: (principals: readonly string[], roles: readonly string[]) => string; undoFailed: string; /** Why a save failed, when the host gives no `errorMessage`. */ failedReason: string; /** Under a failed save; `reason` is the host's `errorMessage`, or `failedReason`. */ nothingChanged: (reason: string | undefined) => string; /** The toast after a grant. */ granted: (principals: readonly string[], roles: readonly string[]) => string; /** The toast after a removal. */ removed: (principals: readonly string[], roles: readonly string[]) => string; undone: string; readOnly: string; /** A note atop access set somewhere else, when the host gives no reason. */ managedElsewhere: string; /** The note's link to where access is set, when the host doesn't name it. */ manageAccess: string; /** After `readOnly` when the host gives no reason. */ readOnlyReason: string; /** Names the switch between open to everyone and only those listed. */ visibility: string; /** The switch's choice that limits it to the people and groups listed. */ restrictedLabel: string; /** The toast after the switch saves; `choice` is the label now chosen. */ visibilityChanged: (choice: string) => string; visibilityFailed: (choice: string) => string; /** Names the role picker on a row where each person or group holds one role. */ roleFor: (principal: string) => string; /** A row menu's submenu of roles. */ roleMenu: string; /** A row menu's action that takes every role the row holds here. */ removeAccess: string; /** The toast after a row's one role is swapped for another. */ roleChanged: (principal: string, role: string) => string; roleChangeFailed: (principal: string, role: string) => string; /** Read with a rule's faces: the first few by name, and how many more. */ ruleMembers: (names: readonly string[], more: number) => string; emptyTitle: string; emptyDescription: (resource: string) => string; noMatches: string; clearFilter: string; back: string; principalsLabel: string; addPrincipal: string; /** Under the people and groups field; a count is undefined when the host doesn't give it. */ pickerHint: (people: number | undefined, groups: number | undefined, everyone: boolean) => string; everyoneCoversGroups: string; organization: string; recent: string; peopleSection: string; groupsSection: string; /** On a row in the picker: the roles it holds here. */ hasRoles: (roles: readonly string[]) => string; /** Read with a group's row: its size, where it comes from and its roles here. */ groupSummary: (members: number | undefined, everyone: boolean, source: 'synced' | 'manual' | undefined, roles: readonly string[]) => string; /** Read with a person's row: what tells them apart, and their roles here. */ personSummary: (detail: string | undefined, owner: boolean, roles: readonly string[]) => string; rolesLabel: string; searchRoles: string; /** On a role's row in the picker. */ alreadyHave: (principals: readonly string[]) => string; alreadyCovered: (roles: readonly string[]) => string; everyoneHasIt: string; /** The footer's account of what pressing Grant does. */ grantSummary: (principals: readonly string[], roles: readonly string[]) => ReactNode; /** Why Grant can't be pressed: everyone picked has every role picked already. */ nothingToGrant: (principals: readonly string[], roles: readonly string[]) => string; pickPrincipalsAndRoles: string; pickPrincipals: string; pickRoles: string; grant: (roles: readonly string[]) => string; grantToEveryone: string; everyoneWarningTitle: (roles: readonly string[], people: number | undefined) => string; everyoneWarning: (resource: string) => string; confirmEveryoneTitle: (roles: readonly string[], people: number | undefined) => string; synced: string; syncedShort: string; manual: string; wholeOrganization: string; joinLater: string; /** Heads the groups a person is in that hold a role here. */ inGroups: string; /** The first few members by name, and how many more there are. */ memberNames: (names: readonly string[], more: number) => string; moreMembers: (n: number) => string; /** Heads the roles the highlighted one holds on this resource. */ currentRoles: string; noRolesHere: string; /** When a role being granted gives everything one already held does. */ becomesRedundant: (granting: readonly string[], held: readonly string[]) => string; alreadyHas: (roles: readonly string[]) => string; everyoneReach: (roles: readonly string[], people: number | undefined) => string; updated: (ago: string) => string; detailsFailed: string; loadingDetails: string; noHighlight: string; }; /** The drawer's own text, which a host translates through UIProvider's `access`. */ export type AccessText = typeof ACCESS_STRINGS; /** The drawer's text with the shared words, such as Cancel and Retry, beside it. */ export type AccessStrings = AccessText & { common: UIStrings['common']; }; /** The access drawer's strings: the host's translations over the English defaults. */ export declare function useAccessStrings(): AccessStrings;