import type { MachinatPlatform } from '@machinat/core'; import Auth, { AnyServerAuthenticator } from '@machinat/auth'; import Next from '@machinat/next'; import WebSocket from '@machinat/websocket'; import type { WebSocketJob, WebSocketResult, EventValue } from '@machinat/websocket'; import { WebviewSocketServer, WebviewAuthController } from './interface'; import { BotP } from './bot'; import { ReceiverP } from './receiver'; import type { WebviewEventContext, WebviewDispatchFrame, WebviewConfigs } from './types'; /** * @category Root */ declare namespace Webview { const Configs: import("@machinat/core/service").SingularServiceInterface>>; type Configs = WebviewConfigs; const Bot: import("@machinat/core/service").ServiceProvider, import("@machinat/core").ModuleUtilities | null, import("./types").WebviewPlatformUtilities | null]> & typeof import("./bot").WebviewBot; type Bot = BotP; const SocketServer: import("@machinat/core/service").ServiceProvider, [string | null, import("ws").Server, import("@machinat/websocket").WebSocketClusterBroker, import("@machinat/websocket").VerifyUpgradeFn | null, import("@machinat/websocket").AnyVerifyLoginFn | null, import("@machinat/core/base/Marshaler").BaseMarshaler, import("@machinat/websocket").WebSocketConfigs]> & (new ({ id, wsServer, broker, verifyUpgrade, verifyLogin, heartbeatInterval, marshaler, }: { id: string | undefined; wsServer: import("ws").Server; broker: import("@machinat/websocket").WebSocketClusterBroker; marshaler: import("@machinat/core/base/Marshaler").Marshaler; verifyUpgrade: import("@machinat/websocket").VerifyUpgradeFn; verifyLogin: import("@machinat/websocket").VerifyLoginFn; heartbeatInterval?: number | undefined; }) => import("@machinat/websocket").WebSocketServer); type SocketServer = WebviewSocketServer; const Receiver: import("@machinat/core/service").ServiceProvider>, [import("./bot").WebviewBot, import("@machinat/websocket").WebSocketServer, import("@machinat/core").ModuleUtilities, import("./types").WebviewPlatformUtilities]> & (new (bot: import("./bot").WebviewBot, server: WebviewSocketServer, popEventWrapper: import("@machinat/core").PopEventWrapper>, null>, popError: import("@machinat/core").PopErrorFn) => import("./receiver").WebviewReceiver>); type Receiver = ReceiverP; const SocketBroker: import("@machinat/core/service").SingularServiceInterface; type SocketBroker = WebSocket.Broker; const SocketServerId: import("@machinat/core/service").SingularServiceInterface; type SocketServerId = string; const WsServer: import("@machinat/core/service").SingularServiceInterface; type WsServer = WebSocket.WsServer; const AuthController: import("@machinat/core/service").ServiceProvider, [import("@machinat/auth").AuthHttpOperator, AnyServerAuthenticator[]]> & (new (operator: import("@machinat/auth").AuthHttpOperator, authenticators: AnyServerAuthenticator[]) => import("@machinat/auth").AuthController); type AuthController = WebviewAuthController; const AuthenticatorList: import("@machinat/core/service").MultiServiceInterface; type AuthenticatorList = Auth.AuthenticatorList; const NextServer: import("@machinat/core/service").SingularServiceInterface; type NextServer = Next.Server; const NextReceiver: import("@machinat/core/service").ServiceProvider & typeof import("@machinat/next").NextReceiver; type NextReceiver = Next.Receiver; const initModule: = EventValue>(configs: WebviewConfigs) => MachinatPlatform, null, WebSocketJob, WebviewDispatchFrame, WebSocketResult>; } export default Webview;