import { Brand } from './@types/Brand.ts'; export declare const simpleNameReStr = "(?:[a-zA-Z][a-zA-Z0-9_.:+<>]*?)"; /** * Reference Name (called SimpleName in this project to avoid confusion with RstNodes that include "Ref" e.g. SubstitutionRef) * * For cross-referencing elements * https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#reference-names * * For (case-insensitive): * - Footnote label * - Citation label * - InterpretedText role * * Also for (in another namespace but is case-sensitive): * - SubstitutionDef label * - SubstitutionRef label */ export type SimpleName = Brand; /** * SimpleName sanitized to be safe to use in html id attr */ export type SanitizedSimpleName = Brand; /** * This function converts origName to normalized form for cross-referencing between documents and for output * * Note: * This function is slightly more strict than internal name normalization * For internal names, the specs allow some other non-alphanumeric characters e.g. "some:text" * However for external names, the normalization is more strict i.e. this function * To keep things simple and to avoid having two normalized forms, we just normalize to this final form */ export declare function normalizeSimpleName(origName: string): SimpleName; export declare function sanitizeSimpleName(origName: string): SanitizedSimpleName; export declare function isSimpleName(text: string): text is SimpleName; //# sourceMappingURL=SimpleName.d.ts.map