import { FunctionComponent, ReactNode } from 'react'; import { VoltraNodeJson, VoltraPropValue } from '../types.js'; import { ContextRegistry } from './context-registry.js'; import { type ElementRegistry } from './element-registry.js'; import { type StylesheetRegistry } from './stylesheet-registry.js'; type VoltraRenderingContext = { registry: ContextRegistry; stylesheetRegistry?: StylesheetRegistry; elementRegistry?: ElementRegistry; duplicates?: Set; inStringOnlyContext?: boolean; }; export declare const renderFunctionalComponent: (Component: FunctionComponent, props: TProps, context: VoltraRenderingContext) => VoltraNodeJson; export declare const renderVoltraVariantToJson: (element: ReactNode) => VoltraNodeJson; export declare function transformProps(props: Record, context: VoltraRenderingContext, componentName?: string): Record; /** Current payload version - increment when making breaking changes to payload schema */ export declare const VOLTRA_PAYLOAD_VERSION = 1; /** * Factory function that creates a Voltra renderer instance. * The renderer is agnostic of whether it's used for live activities or widgets. */ export declare const createVoltraRenderer: () => { addRootNode: (name: string, node: ReactNode) => void; render: () => Record; }; export {}; //# sourceMappingURL=renderer.d.ts.map