import { BlockNoteEditor, BlockNoteSchema, BlockSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, InlineContentSchema, StyleSchema } from "@blocknote/core"; import { useState } from "react"; export type BlockNoteContextValue = { setContentEditableProps?: ReturnType>>[1]; editor?: BlockNoteEditor; colorSchemePreference?: "light" | "dark"; }; export declare const BlockNoteContext: import("react").Context, import("@blocknote/core").StyleSchemaFromSpecs<{ bold: { config: { type: string; propSchema: "boolean"; }; implementation: import("@blocknote/core").StyleImplementation<{ type: string; propSchema: "boolean"; }>; }; italic: { config: { type: string; propSchema: "boolean"; }; implementation: import("@blocknote/core").StyleImplementation<{ type: string; propSchema: "boolean"; }>; }; underline: { config: { type: string; propSchema: "boolean"; }; implementation: import("@blocknote/core").StyleImplementation<{ type: string; propSchema: "boolean"; }>; }; strike: { config: { type: string; propSchema: "boolean"; }; implementation: import("@blocknote/core").StyleImplementation<{ type: string; propSchema: "boolean"; }>; }; code: { config: { type: string; propSchema: "boolean"; }; implementation: import("@blocknote/core").StyleImplementation<{ type: string; propSchema: "boolean"; }>; }; textColor: import("@blocknote/core").StyleSpec<{ readonly type: "textColor"; readonly propSchema: "string"; }>; backgroundColor: import("@blocknote/core").StyleSpec<{ readonly type: "backgroundColor"; readonly propSchema: "string"; }>; }>> | undefined>; /** * Get the BlockNoteContext instance from the nearest BlockNoteContext provider * @param _schema: optional, pass in the schema to return type-safe Context if you're using a custom schema */ export declare function useBlockNoteContext(_schema?: BlockNoteSchema): BlockNoteContextValue | undefined;