///
import type { YooEditor, YooptaPathIndex } from '../../editor/types';
import type { PluginOptions } from '../../plugins/types';
export type YooptaEditorContext = {
editor: YooEditor;
};
export declare const YooptaContext: import("react").Context;
/**
*
*/
declare const YooptaContextProvider: ({ children, editorState }: {
children: any;
editorState: any;
}) => import("react/jsx-runtime").JSX.Element;
declare const useYooptaEditor: () => YooEditor;
declare const useBlockData: (blockId: string) => import("../../editor/types").YooptaBlockData;
declare const useYooptaFocused: () => boolean;
declare const useYooptaReadOnly: () => boolean;
declare const useYooptaPluginOptions: (pluginType: string) => Partial<{
display?: {
title?: string | undefined;
description?: string | undefined;
icon?: import("react").ReactNode;
} | undefined;
shortcuts?: string[] | undefined;
HTMLAttributes?: import("react").HTMLAttributes | undefined;
} & TOptions>;
type UseBlockSelectedProps = {
blockId: string;
at?: YooptaPathIndex;
} | {
at: YooptaPathIndex;
blockId?: string;
};
declare const useBlockSelected: ({ blockId, at }: UseBlockSelectedProps) => boolean;
export { useYooptaEditor, useBlockData, useYooptaPluginOptions, useBlockSelected, useYooptaReadOnly, useYooptaFocused, YooptaContextProvider, };
//# sourceMappingURL=YooptaContext.d.ts.map