import { DeepstreamPlugin, DeepstreamAuthentication } from '@deepstream/types'; import { JSONObject } from '../../../constants'; /** * The open authentication handler allows every client to connect. * If the client specifies a username as part of its authentication * data, it will be used to identify the user internally */ export declare class OpenAuthentication extends DeepstreamPlugin implements DeepstreamAuthentication { description: string; /** * Grants access to any user. Registers them with username or open */ isValidUser(connectionData: JSONObject, authData: JSONObject): Promise<{ isValid: boolean; id: string; }>; }