Hhertz/node_modules/matrix-bot-sdk/lib/helpers/MatrixEntity.d.ts
2025-07-31 23:47:20 +03:00

38 lines
795 B
TypeScript

/**
* Represents a Matrix entity
* @category Utilities
*/
export declare class MatrixEntity {
private fullId;
private entityLocalpart;
private entityDomain;
/**
* Creates a new Matrix entity
* @param {string} fullId The full ID of the entity
*/
constructor(fullId: string);
/**
* The localpart for the entity
*/
get localpart(): string;
/**
* The domain for the entity
*/
get domain(): string;
toString(): string;
}
/**
* Represents a Matrix user ID
* @category Utilities
*/
export declare class UserID extends MatrixEntity {
constructor(userId: string);
}
/**
* Represents a Matrix room alias
* @category Utilities
*/
export declare class RoomAlias extends MatrixEntity {
constructor(alias: string);
}