/** The ✦ share toggle's state: which tenant the menu offers, whether the share * is on, and the write. ONE request answers all three (`GET /apps/:id/grants` * carries the caller's own memberships), so the menu never guesses. * * Nothing is offered unless there is something to offer: a non-owner may not * share, and a caller in no tenant has nobody to share with. Both answer * `undefined`, and the menu item simply does not render. */ import { type AppId } from "../../core/index.js"; export interface AppSharing { org: string; display: string; shared: boolean; onToggle(next: boolean): Promise; } export declare function useAppSharing(appId: AppId, enabled?: boolean): AppSharing | undefined;