/** * Utility functions for parsing bioRxiv URLs and DOIs */ /** * bioRxiv DOI prefixes - both legacy (10.1101) and new (10.64898, Dec 2025+) */ export declare const BIORXIV_DOI_PREFIXES: readonly ["10.1101", "10.64898"]; export declare const BIORXIV_DOI_PREFIX_PATTERN = "(10\\.1101|10\\.64898)"; export interface ParsedBiorxivURL { doi: string; baseDOI: string; version: string | null; fullURL: string; isValid: boolean; } export interface DOIParts { doi: string; prefix: string; suffix: string; date: string | null; identifier: string; version: string | null; } /** * Extract DOI from a bioRxiv URL */ export declare function extractDOIFromURL(url: string): string | null; /** * Parse a bioRxiv DOI into its components * Supports both legacy numeric format (2019 and earlier) and current date-based format (2019+) */ export declare function parseDOI(doi: string): DOIParts | null; /** * Extract base DOI (without version) * Works with both legacy numeric and current date-based formats */ export declare function extractBaseDOI(doi: string): string; /** * Extract version from DOI * Works with both legacy numeric and current date-based formats */ export declare function extractVersion(doi: string): string | null; /** * Check if a DOI is a valid bioRxiv DOI * Supports both legacy numeric and current date-based formats */ export declare function isValidBiorxivDOI(doi: string): boolean; /** * Check if a URL is a valid bioRxiv URL */ export declare function isValidBiorxivURL(url: string): boolean; /** * Parse a bioRxiv URL and extract all relevant information */ export declare function parseBiorxivURL(url: string): ParsedBiorxivURL | null; //# sourceMappingURL=biorxiv-parser.d.ts.map