import * as React from 'react'; import { IBoard, IBoardStyle } from '../types'; export interface NativeVisualEditorBridgeV2Completed { id?: string; characters: string; } export interface NativeVisualEditorBridgeV2Cancelled { id?: string; characters?: undefined; } export declare type NativeVisualEditorBridgeV2Response = NativeVisualEditorBridgeV2Completed | NativeVisualEditorBridgeV2Cancelled; export interface NativeVisualEditorBridgeV2Options { boardStyle?: IBoardStyle; onComplete?: (response: NativeVisualEditorBridgeV2Completed) => void | Promise; } export declare type NativeVisualEditorBridgeV2Launch = (prefilled?: IBoard) => void; declare type NativeVisualEditorBridgeV2ProviderProps = { children: React.ReactNode; }; export declare const NativeVisualEditorBridgeV2Provider: React.FC; export interface UseNativeVisualEditorBridgeV2Options { boardStyle?: IBoardStyle; onComplete?: (response: NativeVisualEditorBridgeV2Completed) => void | Promise; } /** * Hook to access the Visual Editor Bridge functionality. * * @example * ```tsx * const { launch } = useNativeVisualEditorBridgeV2({ * boardStyle: 'black', * onComplete: (response) => {...}, * }); * ``` */ export declare const useNativeVisualEditorBridgeV2: (options?: UseNativeVisualEditorBridgeV2Options) => { launch: NativeVisualEditorBridgeV2Launch; }; export {};