import { ApplySchemaAttributes, CommandFunction, InputRule, KeyBindingProps, KeyBindings, MarkExtension, MarkExtensionSpec, MarkSpecOverride } from '@remirror/core'; import { MarkPasteRule } from '@remirror/pm/paste-rules'; /** * Add a `code` mark to the editor. This is used to mark inline text as a code * snippet. */ export declare class CodeExtension extends MarkExtension { get name(): "code"; createTags(): ("code" | "excludeFromInputRules")[]; createMarkSpec(extra: ApplySchemaAttributes, override: MarkSpecOverride): MarkExtensionSpec; createKeymap(): KeyBindings; keyboardShortcut(props: KeyBindingProps): boolean; /** * Toggle the current selection as a code mark. */ toggleCode(): CommandFunction; createInputRules(): InputRule[]; createPasteRules(): MarkPasteRule[]; } declare global { namespace Remirror { interface AllExtensions { code: CodeExtension; } } }