UNPKG

@only-chat/elasticsearch-user-store

Version:
13 lines (12 loc) 465 B
import { ClientOptions } from '@elastic/elasticsearch'; import type { AuthenticationInfo, UserStore } from '@only-chat/types/userStore.js'; export interface StoreAuthenticationInfo extends AuthenticationInfo { name: string; password: string; } export type { ClientOptions } from '@elastic/elasticsearch'; export interface Config { options: ClientOptions; usersIndex: string; } export declare function initialize(config: Config): Promise<UserStore>;