import { VibeVisibility } from '../../generated/wspace-types'; /** * Visibility for an entity that links to a vibe. * * - `PRIVATE`: only the creator can see it. * - `SHARED_WITH_VIBE`: anyone with access to the linked vibe can see it. * * Mirrors the proposed `EntityVisibility` enum on the wspace-vibecontrols-svc * schema. If the schema does not yet define this enum, callers should drop * the field from their mutation input (see the TODO in each form). */ export type LinkToVibeVisibility = 'PRIVATE' | 'SHARED_WITH_VIBE'; export interface LinkToVibeValue { vibeId: string | null; visibility: LinkToVibeVisibility; } interface LinkToVibePanelProps { value: LinkToVibeValue; onChange: (value: LinkToVibeValue) => void; /** Optional label override */ label?: string; /** Disable the panel entirely (e.g. while submitting). */ disabled?: boolean; } /** * Optional "Link to Vibe" + visibility selector reusable across every entity * create form (VibeDeck / Action / Tunnel / Sandbox / AiPrompt / ScheduledJob). * * Forms thread the value into their mutation input as `vibeId` + `visibility`. * If the underlying schema does not yet define either field, the form should * omit it from the mutation; the resolver will pick a sensible default. */ export declare function LinkToVibePanel({ value, onChange, label, disabled, }: LinkToVibePanelProps): import('react').JSX.Element; export declare const LINK_TO_VIBE_DEFAULT: LinkToVibeValue; /** * Maps the panel's string-union visibility onto the generated `VibeVisibility` * enum used by every mutation input that carries a vibe link. The string values * match the enum members 1:1, so this is a total, exhaustive mapping. */ export declare function toVibeVisibility(visibility: LinkToVibeVisibility): VibeVisibility; /** * Converts a `LinkToVibeValue` into the `{ vibeId, visibility }` fragment to * spread into a create/update mutation input. Returns an empty object when no * vibe is selected so the resolver applies its default (unlinked + PRIVATE), * avoiding a spurious `vibeId: null` in the request. */ export declare function linkToVibeInput(value: LinkToVibeValue): { vibeId?: string; visibility?: VibeVisibility; }; export {};