import { ShareGrantView, ShareRole } from '@burdenoff/fe-libs/sharing'; /** Raw `ShareGrant` selection returned by the inline documents below. */ export interface ShareGrantNode { id: string; granteeEmail: string | null; granteeUserId: string | null; role: ShareRole; status: ShareGrantView['status']; visibility: ShareGrantView['visibility']; shareUrl: string | null; expiresAt: string | null; createdAt: string; } /** The `__typename`-less GraphQL selection string shared across documents. */ export declare const SHARE_GRANT_FIELDS = "\n id\n granteeEmail\n granteeUserId\n role\n status\n visibility\n shareUrl\n expiresAt\n createdAt\n"; /** Map a backend `ShareGrant` node onto the fe-libs `ShareGrantView`. */ export declare function toShareGrantView(node: ShareGrantNode): ShareGrantView; /** * Split a resource's grants into user grants vs public links by visibility. * `PUBLIC_LINK` grants surface in the "Public links" section of the dialog; * everything else is a user grant. */ export declare function partitionGrants(nodes: ShareGrantNode[]): { grants: ShareGrantView[]; links: ShareGrantView[]; }; /** Canonical role ladder exposed by every VibeControls share controller. */ export declare const VIBE_SHARE_ROLES: ShareRole[];