import { ApplySchemaAttributes, CommandFunction, KeyBindings, NodeExtension, NodeExtensionSpec, NodeSpecOverride } from '@remirror/core';
export interface HardBreakOptions {
/**
* The a collection of nodes where the hard break is not available.
*/
excludedNodes?: string[];
}
/**
* An extension which provides the functionality for inserting a `hardBreak`
* `
` tag into the editor.
*
* @remarks
*
* It will automatically exit when used inside a `codeClock`. To
* prevent problems occurring when the codeblock is the last node in the
* doc, you should add the `TrailingNodeExtension` which automatically appends a
* paragraph node to the last node.
*/
export declare class HardBreakExtension extends NodeExtension {
get name(): "hardBreak";
createTags(): "inline"[];
createNodeSpec(extra: ApplySchemaAttributes, override: NodeSpecOverride): NodeExtensionSpec;
createKeymap(): KeyBindings;
/**
* Inserts a hardBreak `
` tag into the editor.
*/
insertHardBreak(): CommandFunction;
}
declare global {
namespace Remirror {
interface AllExtensions {
hardBreak: HardBreakExtension;
}
}
}