import type { MachinatUser } from '@machinat/core'; import type { AuthController, AnyServerAuthenticator, ContextOfAuthenticator } from '@machinat/auth'; import type { EventInput, VerifyLoginFn, EventValue } from '@machinat/websocket'; import { WebviewConnection } from './channel'; import type { WebviewEvent } from './types'; export declare const createEvent: >(value: EventInput, channel: WebviewConnection, user: User) => WebviewEvent; export declare const useAuthLogin: (controller: AuthController) => VerifyLoginFn, string>; export declare const verifyOrigin: (origin: string, expectedHost: string) => boolean;