default: {
    checkIfTopicGroupExistsWithEmail(
        topicGroup: string,
        email: string,
    ): Promise<boolean>;
    deleteTopicGroupByName(
        topicGroup: string,
        userid: undefined | number,
    ): Promise<ResultSetHeader>;
    getAllUserTopicGroupsAndTopics(email: string): Promise<RowDataPacket[]>;
    updateTopicGroup(
        topicGroup: string,
        topics: string[],
        email: string,
    ): Promise<{ email: string; message: string; state: string }>;
    updateUserCourseTopics(
        usercourseid: number,
        topics: string[],
    ): Promise<{ message: string; state: string }>;
} = ...
Type declaration
- checkIfTopicGroupExistsWithEmail:function- checkIfTopicGroupExistsWithEmail(    topicGroup: string,    email: string,): Promise<boolean> - Parameters- topicGroup: string
- email: string
 
- Returns Promise<boolean>- Whether the topic group exists for the user. 
 
- deleteTopicGroupByName:function- deleteTopicGroupByName(    topicGroup: string,    userid: undefined | number,): Promise<ResultSetHeader> - Parameters- topicGroup: string
- userid: undefined | number
 
- Returns Promise<ResultSetHeader>- The result of the delete operation. 
 
- getAllUserTopicGroupsAndTopics:function- getAllUserTopicGroupsAndTopics(email: string): Promise<RowDataPacket[]> - Returns Promise<RowDataPacket[]>- The topic groups and topics of the user. 
 
- updateTopicGroup:function- updateTopicGroup(    topicGroup: string,    topics: string[],    email: string,): Promise<{ email: string; message: string; state: string }> - Parameters- topicGroup: string
- topics: string[]
- email: string
 
- Returns Promise<{ email: string; message: string; state: string }>- The result of the update operation. 
 
- updateUserCourseTopics:function- updateUserCourseTopics(    usercourseid: number,    topics: string[],): Promise<{ message: string; state: string }> - Parameters- usercourseid: number
- topics: string[]
 
- Returns Promise<{ message: string; state: string }>- The result of the update operation. 
 
Checks if a topic group exists for a user.