import React from 'react'; /** * Prompt plugin: This interface defines the contract that registers the prompts * @template ComponentProps */ export interface PromptPlugin> { __type: 'prompt'; /** * The name of the plugin */ name: string; /** * The component that will be rendered * @param props The used components props */ Component(props: ComponentProps): React.ReactElement; /** * If this condition is true and we are in edit mode then the prompt will render */ condition: boolean; /** * The props that are give to the component {...props} */ props?: ComponentProps; } /** * This component renders all the prompt plugins that are registered. */ export declare const PromptRenderer: () => React.ReactElement | null; /** * Renders a portal in the app that is used for showing the prompts in the app * * @param children */ export declare const PromptProvider: React.FC;