import { ChannelMembership, ChannelWithTeamData } from '../types/channels'; import { QueryParams } from '../types/query'; import { StatusResponse } from '../types/response'; import { SystemStatus } from '../types/system'; import { CreateUserProfile, UserProfile, UserRole } from '../types/users'; import { IncomingWebhook, IncomingWebhookMessageParams } from '../types/webhooks'; export declare class MattermostClient { private personalAccessToken; private http; constructor(personalAccessToken?: string); private getAutorizationHeader; setPersonalAccessToken(personalAccessToken: string): void; login({ email, password }: { email: string; password: string; }): Promise; logout(): Promise; createUser(user: CreateUserProfile): Promise; fetchAllUsers(queries: QueryParams): Promise; fetchUser(userId: string): Promise; patchUser(userId: string, user: Partial): Promise; updateUserRole(userId: string, roles: UserRole[]): Promise; updateUserActiveStatus(userId: string, active: boolean): Promise; sendPasswordResetEmail(email: string): Promise; fetchAllChannels(queries: QueryParams): Promise; fetchChannelMembers(channelId: string): Promise; addUserToChannel({ channelId, userId }: { channelId: string; userId: string; }): Promise; removeUserFromChannel({ channelId, userId }: { channelId: string; userId: string; }): Promise; createIncomingWebhooks(params: { channelId: string; userId: string; displayName: string; description: string; userName: string; iconUrl: string; }): Promise; fetchAllIncomingWebhooks(queries: QueryParams): Promise; fetchIncomingWebhook(hookId: string): Promise; postMessageToIncomingWebhook(webhookUrl: string, args: IncomingWebhookMessageParams): Promise; checkSystemHealth(): Promise; }