export declare const PLACEHOLDER_START = "\uE000"; export interface IExtractedReferences { /** Original text with every `{type/id}` token replaced by a placeholder. */ text: string; /** Original `{type/id}` tokens, indexed by the number embedded in their placeholder. */ tokens: string[]; } /** * `split`'s capture group wraps the whole placeholder, for use with `String.split` * so the placeholder survives as its own array entry. The default form's capture * group is just the numeric index, for an `exec()` loop that resolves it against * `tokens`. */ export declare function getPlaceholderRegex(split?: boolean): RegExp; /** * Replaces `{type/id}` reference tokens with placeholders before Markdown parsing. * CommonMark's emphasis rule treats `_word_`-shaped substrings inside an id as * legal italic markup and strips the underscores — extracting first avoids that. */ export declare function extractReferences(text: string): IExtractedReferences; //# sourceMappingURL=reference-placeholder.d.ts.map