import { MarkdownEditorSelection } from './types'; /** The text inside the code span holding `pos`. */ export declare function codeSpanAt(doc: string, pos: number): MarkdownEditorSelection | null; /** The word holding or touching `pos`. */ export declare function wordAt(doc: string, pos: number): MarkdownEditorSelection | null; /** Formats in effect at the selection's head, judged from the Markdown around it. */ export declare function sourceFormats(doc: string, selection: MarkdownEditorSelection): Set; /** The `:shortcode` being typed at the end of `text`, without its colon. */ export declare function shortcodeBefore(text: string): string | null;