import { type AccessModel } from './model.js'; import type { AccessStrings } from './strings.js'; import type { AccessGroupDetails, AccessPrincipal, AccessRole } from './types.js'; export type DescribeGroup = (groupId: string, signal: AbortSignal) => Promise; export type SearchPrincipals = (query: string, signal: AbortSignal) => Promise; /** Details already loaded, kept for as long as the drawer is open. */ export type DetailsCache = Map; /** A person's face, or a group's or everyone's icon, beside their name. */ export declare function PrincipalTile({ principal, compact, className, }: { principal: AccessPrincipal; /** The smaller size, for a picker row. */ compact?: boolean; className?: string; }): import("react").JSX.Element; interface PrincipalPickerProps { model: AccessModel; value: readonly string[]; onValueChange: (ids: string[]) => void; /** The roles being granted, which the details weigh against what the highlighted holds. */ granting: readonly AccessRole[]; describeGroup?: DescribeGroup | undefined; searchPrincipals?: SearchPrincipals | undefined; groupCount?: number | undefined; peopleCount?: number | undefined; recentPrincipalIds?: readonly string[] | undefined; cache: DetailsCache; /** Everyone the picker has seen, by id, so a chosen one found by a search keeps its name. */ seen: Map; id: string; describedBy: string; /** The drawer's body, above its footer, which the open list fills. */ boundary: Element | null; t: AccessStrings; } /** The people and groups field: everyone pinned first, then recent picks, then people and * groups; a pane beside the list says more about the highlighted one and what it holds here. */ export declare function PrincipalPicker({ model, value, onValueChange, granting, describeGroup, searchPrincipals, groupCount, peopleCount, recentPrincipalIds, cache, seen, id, describedBy, boundary, t, }: PrincipalPickerProps): import("react").JSX.Element; export {};