import { InjectionKey } from 'vue'; /** A single value within a `ContextEntityField`. Set `isClickable` to render it as interactive. */ export interface ContextEntityFieldValue { name: string; isClickable?: boolean; /** Opaque identifier for this value (e.g. a knowledge-graph id). Not read internally; consumers resolve it themselves in their `show-context` handler. */ contextIdentifier?: string; } /** A pre-built label/value entry for PvSpinesEntityFields and PvContextFeedback. */ export interface ContextEntityField { label: string; value: ContextEntityFieldValue | ContextEntityFieldValue[]; } export interface ContextFeedbackPayload { fields: string[]; comment: string; } /** Emitted as PvContextSurface's `show-context` event when a clickable value is activated. */ export interface ShowContextPayload { contextIdentifier: string; } /** * Lets content slotted into PvContextSurface (e.g. PvSpinesEntityFields) request a context * change without the consumer manually relaying an intermediate event. PvContextSurface * provides this; slotted content injects it and calls `showContext` directly, and * PvContextSurface re-emits it as its own `show-context` event. */ export interface PvContextSurfaceContext { showContext: (payload: ShowContextPayload) => void; } export declare const PvContextSurfaceKey: InjectionKey;