export type IdTypes = 'roomId' | 'room' | 'user'; export type MXCData = { /** * - The category of the data. */ dataType: 'mxc'; /** * - The Matrix server domain (e.g., 'matrix.org'). */ server: string; /** * - The unique identifier for the data. */ dataId: string; }; export type MatrixSchemeData = { /** * - The category of the data. */ dataType: 'matrix_scheme'; /** * - The type of the matrix resource. */ type: IdTypes | 'event'; /** * - The sub type of the matrix resource. */ subType: null | IdTypes; /** * - The primary identifier (room ID or user ID). */ resourceId: string; /** * - The specific event ID (only if type is 'event'). */ eventId?: string; /** * - The matrix server domain. */ server: string | null; /** * - Key-value pairs of query parameters (e.g., { via: 'server.com' }). */ params: Record; }; export type MatrixWebData = { /** * - The category of the data. */ dataType: 'matrix_web_url'; /** * - The decoded string from the URL fragment. */ decodedFragment: string; /** * - The result of the parsed resource. */ parsed: MatrixSchemeData | MXCData; }; /** * A parser pair for MXC (Matrix Content) URIs, consisting of a predicate to check for the 'mxc://' prefix and a callback to parse the URI. */ export declare const MatrixMcxParser: import("../TinyUriParser.mjs").ParserPair<"mxc", MXCData>; /** * A parser pair for Matrix scheme URIs, consisting of a predicate to check for the 'matrix:' prefix and a callback to parse the URI. */ export declare const MatrixSchemeParser: import("../TinyUriParser.mjs").ParserPair<"matrix_scheme", MatrixSchemeData>; /** * Handle Matrix ID shorthands (#room, !event, $event, @user) */ export declare const MatrixShortHandParser: import("../TinyUriParser.mjs").ParserPair<"matrix_shorthand", MatrixSchemeData>; /** * Check for Web URLs (e.g., https://matrix.to/#/...) */ export declare const MatrixWebUrlParser: import("../TinyUriParser.mjs").ParserPair<"matrix_web_url", MatrixWebData>; /** * An array of Matrix Protocol parser pairs, where each pair contains a matching predicate and a parsing callback. */ export declare const MatrixProtocolParsers: readonly (import("../TinyUriParser.mjs").ParserPair<"matrix_scheme", MatrixSchemeData> | import("../TinyUriParser.mjs").ParserPair<"matrix_shorthand", MatrixSchemeData> | import("../TinyUriParser.mjs").ParserPair<"matrix_web_url", MatrixWebData> | import("../TinyUriParser.mjs").ParserPair<"mxc", MXCData>)[]; //# sourceMappingURL=MatrixProtocol.d.mts.map