import { MatrixClient } from "./MatrixClient"; /** * Access to various administrative APIs specifically available in Synapse. * @category Admin APIs */ export declare class SynapseAdminApis { private client; constructor(client: MatrixClient); /** * Determines if the given user is a Synapse server administrator for this homeserver. The * client making the request must be an admin user themselves (check with `isSelfAdmin`) * @param {string} userId The user ID to check. * @returns {Promise} Resolves to true if the user is an admin, false otherwise. * Throws if there's an error. */ isAdmin(userId: string): Promise; /** * Determines if the current user is an admin for the Synapse homeserver. * @returns {Promise} Resolve to true if the user is an admin, false otherwise. * Throws if there's an error. */ isSelfAdmin(): Promise; }