import { type HubConfig } from "../lib/hub-client.js"; import { type BaseOpts } from "./data.js"; export interface EffectiveFacet { facet: { id: string; entityId: string; profileId: string; workspaceId?: string | null; status?: string | null; properties?: Record; }; profile?: { slug: string; displayName: string; }; } /** Fetch an entity's attached roles. Shared with `show `'s Roles section. */ export declare function fetchFacets(entityId: string, cfg: HubConfig): Promise; /** Render the "Roles (n)" heading + each role's name/status/properties. */ export declare function renderRoles(facets: EffectiveFacet[]): void; export declare function attachFacet(entityId: string, roleSlug: string, opts: BaseOpts & { property?: string[]; workspace?: string; }): Promise; export declare function listFacets(entityId: string, opts: BaseOpts): Promise; export declare function detachFacet(facetOrEntityId: string, opts: BaseOpts & { entity?: string; role?: string; }): Promise;