import * as React from 'react';
import { Editor } from 'slate';
import { NodeEditorProps, NodeRendererProps, TextPlugin } from '@edtr-io/plugin-text';
export declare type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
export declare const createHeadingNode: (level: HeadingLevel) => string;
export interface HeadingsPluginOptions {
    EditorComponent?: React.ComponentType<NodeEditorProps & {
        level: HeadingLevel;
    }>;
    RenderComponent?: React.ComponentType<NodeRendererProps & {
        level: HeadingLevel;
    }>;
}
export declare const createIsHeading: (level: HeadingLevel) => (editor: Editor) => boolean;
export declare const createSetHeading: (level: HeadingLevel) => (editor: Editor) => Editor;
export declare const getHeadingLevel: (editor: Editor) => 1 | 2 | 6 | 5 | 4 | 3 | undefined;
export declare const createHeadingsPlugin: ({ EditorComponent, RenderComponent }?: HeadingsPluginOptions) => () => TextPlugin;
//# sourceMappingURL=headings.d.ts.map