import { TUseBlockNoteParams } from './types'; import { BlockNoteViewProps } from '@blocknote/react'; import { Block, BlockNoteSchema } from '@blocknote/core'; export declare const schema: BlockNoteSchema; customHTML: import('@blocknote/core').BlockSpec<"customHTML", { readonly html: { readonly default: ""; }; }, "none">; bunnyVideo: import('@blocknote/core').BlockSpec<"bunnyVideo", { readonly widthValue: { readonly default: 100; }; readonly widthUnit: { readonly default: "%"; }; readonly align: { readonly values: readonly ["start", "center", "end"]; readonly default: "start"; }; readonly player: { readonly values: readonly ["video", "audio"]; readonly default: "video"; }; readonly aspectRatio: { readonly default: 1.7778; }; readonly vId: { readonly default: ""; }; }, "none">; mediaLibrary: import('@blocknote/core').BlockSpec<"mediaLibrary", { readonly widthValue: { readonly default: 100; }; readonly widthUnit: { readonly default: "%"; }; readonly align: { readonly values: readonly ["start", "center", "end"]; readonly default: "start"; }; readonly url: { readonly default: ""; }; readonly link: { readonly default: ""; }; readonly target: { readonly values: readonly ["_blank", "_self"]; readonly default: "_self"; }; readonly alt: { readonly default: ""; }; readonly title: { readonly default: ""; }; readonly caption: { readonly default: ""; }; readonly fileType: { readonly values: readonly ["image", "audio", "video", "other"]; readonly default: "image"; }; }, "none">; bulletListItem: import('@blocknote/core').BlockSpec<"bulletListItem", { readonly backgroundColor: { default: "default"; }; readonly textColor: { default: "default"; }; readonly textAlignment: { default: "left"; values: readonly ["left", "center", "right", "justify"]; }; }, "inline">; codeBlock: import('@blocknote/core').BlockSpec<"codeBlock", { readonly language: { readonly default: string; }; }, "inline">; divider: import('@blocknote/core').BlockSpec<"divider", {}, "none">; file: import('@blocknote/core').BlockSpec<"file", { readonly backgroundColor: { default: "default"; }; readonly name: { readonly default: ""; }; readonly url: { readonly default: ""; }; readonly caption: { readonly default: ""; }; }, "none">; heading: import('@blocknote/core').BlockSpec<"heading", { readonly isToggleable?: { readonly default: false; readonly optional: true; } | undefined; readonly level: { readonly default: 1 | 2 | 5 | 3 | 6 | 4; readonly values: readonly number[]; }; readonly backgroundColor: { default: "default"; }; readonly textColor: { default: "default"; }; readonly textAlignment: { default: "left"; values: readonly ["left", "center", "right", "justify"]; }; }, "inline">; numberedListItem: import('@blocknote/core').BlockSpec<"numberedListItem", { readonly start: { readonly default: undefined; readonly type: "number"; }; readonly backgroundColor: { default: "default"; }; readonly textColor: { default: "default"; }; readonly textAlignment: { default: "left"; values: readonly ["left", "center", "right", "justify"]; }; }, "inline">; paragraph: import('@blocknote/core').BlockSpec<"paragraph", { backgroundColor: { default: "default"; }; textColor: { default: "default"; }; textAlignment: { default: "left"; values: readonly ["left", "center", "right", "justify"]; }; }, "inline">; quote: import('@blocknote/core').BlockSpec<"quote", { readonly backgroundColor: { default: "default"; }; readonly textColor: { default: "default"; }; }, "inline">; table: import('@blocknote/core').LooseBlockSpec<"table", { textColor: { default: "default"; }; }, "table">; toggleListItem: import('@blocknote/core').BlockSpec<"toggleListItem", { readonly backgroundColor: { default: "default"; }; readonly textColor: { default: "default"; }; readonly textAlignment: { default: "left"; values: readonly ["left", "center", "right", "justify"]; }; }, "inline">; }>, import('@blocknote/core')._DefaultInlineContentSchema<{ text: { config: "text"; implementation: any; }; link: { config: "link"; implementation: any; }; }>, import('@blocknote/core')._DefaultStyleSchema<{ 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"; }>; }>>; export declare const useBlockNote: (params?: TUseBlockNoteParams) => { blockNoteViewProps: BlockNoteViewProps; customHTML: import('@blocknote/core').BlockSpec<"customHTML", { readonly html: { readonly default: ""; }; }, "none">; bunnyVideo: import('@blocknote/core').BlockSpec<"bunnyVideo", { readonly widthValue: { readonly default: 100; }; readonly widthUnit: { readonly default: "%"; }; readonly align: { readonly values: readonly ["start", "center", "end"]; readonly default: "start"; }; readonly player: { readonly values: readonly ["video", "audio"]; readonly default: "video"; }; readonly aspectRatio: { readonly default: 1.7778; }; readonly vId: { readonly default: ""; }; }, "none">; mediaLibrary: import('@blocknote/core').BlockSpec<"mediaLibrary", { readonly widthValue: { readonly default: 100; }; readonly widthUnit: { readonly default: "%"; }; readonly align: { readonly values: readonly ["start", "center", "end"]; readonly default: "start"; }; readonly url: { readonly default: ""; }; readonly link: { readonly default: ""; }; readonly target: { readonly values: readonly ["_blank", "_self"]; readonly default: "_self"; }; readonly alt: { readonly default: ""; }; readonly title: { readonly default: ""; }; readonly caption: { readonly default: ""; }; readonly fileType: { readonly values: readonly ["image", "audio", "video", "other"]; readonly default: "image"; }; }, "none">; bulletListItem: import('@blocknote/core').BlockSpec<"bulletListItem", { readonly backgroundColor: { default: "default"; }; readonly textColor: { default: "default"; }; readonly textAlignment: { default: "left"; values: readonly ["left", "center", "right", "justify"]; }; }, "inline">; codeBlock: import('@blocknote/core').BlockSpec<"codeBlock", { readonly language: { readonly default: string; }; }, "inline">; divider: import('@blocknote/core').BlockSpec<"divider", {}, "none">; file: import('@blocknote/core').BlockSpec<"file", { readonly backgroundColor: { default: "default"; }; readonly name: { readonly default: ""; }; readonly url: { readonly default: ""; }; readonly caption: { readonly default: ""; }; }, "none">; heading: import('@blocknote/core').BlockSpec<"heading", { readonly isToggleable?: { readonly default: false; readonly optional: true; } | undefined; readonly level: { readonly default: 1 | 2 | 5 | 3 | 6 | 4; readonly values: readonly number[]; }; readonly backgroundColor: { default: "default"; }; readonly textColor: { default: "default"; }; readonly textAlignment: { default: "left"; values: readonly ["left", "center", "right", "justify"]; }; }, "inline">; numberedListItem: import('@blocknote/core').BlockSpec<"numberedListItem", { readonly start: { readonly default: undefined; readonly type: "number"; }; readonly backgroundColor: { default: "default"; }; readonly textColor: { default: "default"; }; readonly textAlignment: { default: "left"; values: readonly ["left", "center", "right", "justify"]; }; }, "inline">; paragraph: import('@blocknote/core').BlockSpec<"paragraph", { backgroundColor: { default: "default"; }; textColor: { default: "default"; }; textAlignment: { default: "left"; values: readonly ["left", "center", "right", "justify"]; }; }, "inline">; quote: import('@blocknote/core').BlockSpec<"quote", { readonly backgroundColor: { default: "default"; }; readonly textColor: { default: "default"; }; }, "inline">; table: import('@blocknote/core').LooseBlockSpec<"table", { textColor: { default: "default"; }; }, "table">; toggleListItem: import('@blocknote/core').BlockSpec<"toggleListItem", { readonly backgroundColor: { default: "default"; }; readonly textColor: { default: "default"; }; readonly textAlignment: { default: "left"; values: readonly ["left", "center", "right", "justify"]; }; }, "inline">; }>, import('@blocknote/core')._DefaultInlineContentSchema<{ text: { config: "text"; implementation: any; }; link: { config: "link"; implementation: any; }; }>, import('@blocknote/core')._DefaultStyleSchema<{ bold: { config: { type: string; propSchema: "boolean"; }; /** * 每個 group 的排序權重 = 該 group 內所有 item 的最小 item 權重 * * 由於 item 權重唯一,group 權重亦唯一;以 group 權重為主鍵排序即可保證 * 「同一 group 的項目必相鄰」,避免 BlockNote 的 SuggestionMenu 以 group * 名稱當 React key 重複渲染同名 group 標題而觸發 duplicate key 警告。 */ 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"; }>; }>>; blocks: Block[]; setBlocks: import('react').Dispatch>; };