import type { PuppetSkeleton } from '../puppet/puppet-skeleton.js'; declare const loginMixin: (mixinBase: MixinBase) => (abstract new (...args: any[]) => { /** * @internal used by public API `currentUserId` */ __currentUserId?: string | undefined; /** * The current logged in user id. */ readonly currentUserId: string; /** * Boolean value indicates whether the user is logged in or not. */ readonly isLoggedIn: boolean; __authQrCode?: string | undefined; readonly authQrCode: string | undefined; start(): Promise; /** * ref: https://github.com/wechaty/puppet/issues/184 */ stop(): Promise; /** * Need to be called internally when the puppet is logined. * this method will emit a `login` event * @internal for puppet internal usage */ login(userId: string): void; /** * Need to be called internally/externally when the puppet need to be logouted * this method will emit a `logout` event, * * Note: must set `this.currentUserId = undefined` in this function. */ logout(reason?: string): Promise; /** * @deprecated use `currentUserId` instead. (will be removed in v2.0) */ selfId(): string; /** * @deprecated use isLoggedIn instead. will be removed in v2.0 */ logonoff(): boolean; readonly id: string; readonly options: import("../schemas/puppet.js").PuppetOptions; wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; emit(event: any, ...args: any): boolean; addListener(event: E, listener: import("../puppet/events.js").PuppetEventListener[E]): any; on(event: E_1, listener: import("../puppet/events.js").PuppetEventListener[E_1]): any; once(event: E_2, listener: import("../puppet/events.js").PuppetEventListener[E_2]): any; prependListener(event: E_3, listener: import("../puppet/events.js").PuppetEventListener[E_3]): any; prependOnceListener(event: E_4, listener: import("../puppet/events.js").PuppetEventListener[E_4]): any; off(event: E_5, listener: import("../puppet/events.js").PuppetEventListener[E_5]): any; removeAllListeners(event?: E_6 | undefined): any; removeListener(event: E_7, listener: import("../puppet/events.js").PuppetEventListener[E_7]): any; eventNames(): (string | symbol)[]; rawListeners(event: E_8): Function[]; listeners(event: E_9): Function[]; listenerCount(event: E_10): number; getMaxListeners(): number; setMaxListeners(maxListeners: number): any; __events: import("../puppet/events.js").PuppetEventListener; }) & MixinBase; declare type LoginMixin = ReturnType; declare type ProtectedPropertyLoginMixin = '__authQrCode' | '__currentUserId' | 'login' | 'logonoff'; export type { LoginMixin, ProtectedPropertyLoginMixin, }; export { loginMixin }; //# sourceMappingURL=login-mixin.d.ts.map