import { type ReactNode } from 'react';
import type { Theme } from '@riverbankcms/blocks';
import type { PickedRichTextImage } from '@riverbankcms/editor';
export type OnPickImage = () => Promise<PickedRichTextImage | null>;
export type RichTextWidgetContextValue = {
    theme: Theme | null;
    onPickImage: OnPickImage;
};
export declare function useRichTextWidgetContext(): RichTextWidgetContextValue;
export type RichTextWidgetProviderProps = {
    theme: Theme | null;
    onPickImage: OnPickImage;
    children: ReactNode;
};
export declare function RichTextWidgetProvider({ theme, onPickImage, children }: RichTextWidgetProviderProps): import("react/jsx-runtime").JSX.Element;
