import { createElement } from 'react'; import { N as FrameState } from '../types-CH60H6Gq.cjs'; import { UseFrameReturnValue } from '../unstable-types.cjs'; import { FrameUIComponents as FrameUIComponents$1, FrameUIComponentStylingProps, FrameMessage } from './types.cjs'; import 'frames.js'; import 'frames.js/frame-parsers'; import 'frames.js/types'; type FrameUIComponents> = Partial>; type FrameUITheme> = Partial>; type BaseFrameUIProps> = { frameState: FrameState | UseFrameReturnValue; /** * Renders also frames that contain only image and at least one button * * @defaultValue false */ allowPartialFrame?: boolean; /** * Renders debug image if available */ enableImageDebugging?: boolean; components: Required>; theme?: FrameUITheme | undefined; /** * Called when an error occurs in response to frame button press * * @defaultValue console.error() */ onError?: (error: Error) => void; /** * Called when a messages is returned in response to frame button press */ onMessage?: (message: FrameMessage) => void; /** * Custom createElement function to use when rendering components. * * This is useful for libraries like Nativewind that require a custom createElement function. * * @defaultValue React.createElement */ createElement?: typeof createElement; }; declare function BaseFrameUI>({ frameState, components, theme, allowPartialFrame, enableImageDebugging, onError, onMessage, createElement, }: BaseFrameUIProps): JSX.Element | null; export { BaseFrameUI, type BaseFrameUIProps, type FrameUIComponents, type FrameUITheme };