import { type ContextId, type Signal } from "@qwik.dev/core"; export type PlaygroundEvent = { id: string; timestamp: number; type: "event"; pieceName: string; propName: string; value: any; }; export type LivePropsContext = { /** Map of piece name -> { prop name -> value } */ propValues: Record>; /** Whether to use signal binding in generated code */ isBindProps?: Signal; /** The currently selected piece in the sidebar */ selectedPiece?: Signal; /** Component metadata */ metadata?: Signal; /** Optional signal to log events back to the playground */ events?: Signal; /** The internal playground state object */ state?: any; /** Handler invocation counts: { handlerName -> count } */ handlerCounts?: Signal>; }; /** @internal Injected by the QDS playground transform. */ export declare const livePropsContextId: ContextId; /** * Marker context. Only provided in the subtree that holds the live preview * scenario. Components rendered elsewhere (e.g. inside the Playground widget's * chrome — code toggles, scenario picker, the code-expand collapsible) will * not have access to this context, which signals to `usePlayground` that the * live sync logic should stay inactive for that instance. */ /** @internal Injected by the QDS playground transform. */ export type LivePreviewScope = { readonly active: true; }; /** @internal Injected by the QDS playground transform. */ export declare const livePreviewScopeContextId: ContextId;