import { ShareController } from '@burdenoff/fe-libs/sharing'; import { GenericShareEntity, EntityShareIdentity } from './entityShareOps'; /** * Identity + linkage the controller needs to read and mutate a resource's * shares. `id` always drives the share mutations (keyed by `resourceId`). * `owner` is required only for entities read by `(ownerId, ownerType)` * (scorecard, docs); `vibeId` enables the dialog's "Everyone with Vibe" mode. */ export interface EntityShareResource extends EntityShareIdentity { vibeId?: string | null; } /** * Build a {@link ShareController} for a generic-sharing entity. Pass a stable * resource reference: `{ id }` for the by-id entities, `{ id, owner }` for the * owner-keyed ones (scorecard, docs), plus `vibeId` when known so the dialog * can surface the "Everyone with Vibe" mode. */ export declare function useEntityShareController(entity: GenericShareEntity, resource: EntityShareResource): ShareController;