import { Context, Service, Session } from 'koishi'; import { ChatHubAuthGroup, ChatHubAuthUser } from './types'; export declare class ChatLunaAuthService extends Service { readonly ctx: Context; config: any; constructor(ctx: Context, config: any); getUser(session: Session, userId?: string): Promise; private _createUser; createAuthGroup(session: Session, group: ChatHubAuthGroup): Promise; resolveAuthGroup(session: Session, platform: string, userId?: string): Promise; getAuthGroups(platform?: string): Promise; getAuthGroup(name: string, throwError?: boolean): Promise; calculateBalance(session: Session, platform: string, usedTokenNumber: number, userId?: string): Promise; getBalance(session: Session, userId?: string): Promise; modifyBalance(session: Session, amount: number, userId?: string): Promise; setBalance(session: Session, amount: number, userId?: string): Promise; private _getAuthGroup; resetAuthGroup(authGroupId: number): Promise; increaseAuthGroupCount(authGroupId: number): Promise; addUserToGroup(user: ChatHubAuthUser, groupName: string): Promise; removeUserFormGroup(user: ChatHubAuthUser, groupName: string): Promise; setAuthGroup(groupName: string, group: Partial): Promise; private _initAuthGroup; private _defineDatabase; }