/** * @typedef {import('../jsDoc.mjs').UsernameRegexTemplate} UsernameRegexTemplate */ export type UsernameRegexTemplate = import('../jsDoc.mjs').UsernameRegexTemplate; /** * Matrix Protocol (matrix.org) * Official Documentation: https://spec.matrix.org/latest/appendices/#identifier-grammar */ declare const MatrixProtocolRegex: Readonly<{ /** * User ID * Format: @localpart:domain * @type {UsernameRegexTemplate} */ userName: UsernameRegexTemplate; /** * Room Alias (Human-readable alias) * Format: #alias:domain * @type {UsernameRegexTemplate} */ roomName: UsernameRegexTemplate; /** * Room ID (Internal and immutable ID) * Format: !opaque_id:domain * @type {UsernameRegexTemplate} */ roomId: UsernameRegexTemplate; /** * Event ID (Event/message identifier) * Format v1/v2: $opaque_id:domain * Format v3+: $Base64String (without the domain at the end) * @type {UsernameRegexTemplate} */ eventId: UsernameRegexTemplate; /** * Group/Space ID (Legacy/Communities) * Format: +group_id:domain * @type {UsernameRegexTemplate} */ groupId: UsernameRegexTemplate; /** * Matrix.to Permalink * Format: https://matrix.to/#/@user:domain or matrix.to/#/!room:domain * Supports optional event IDs and query parameters (like ?via=server.org) * @type {UsernameRegexTemplate} */ matrixToLink: UsernameRegexTemplate; /** * Matrix URI Scheme (RFC 8922) * Format: matrix:u/user:domain or matrix:roomid/room:domain * @type {UsernameRegexTemplate} */ matrixUri: UsernameRegexTemplate; /** * HTML Mention * Format: User Name * Matches standard formatted mentions sent by Matrix clients inside HTML bodies. * @type {UsernameRegexTemplate} */ htmlMention: UsernameRegexTemplate; /** * Matrix Content URI (Media) * Format: mxc://server-name/media-id * Used for avatars, images, and file attachments in the Matrix network. * @type {UsernameRegexTemplate} */ mxcUri: UsernameRegexTemplate; }>; export default MatrixProtocolRegex; //# sourceMappingURL=MatrixProtocol.d.mts.map