import type { JSONRPCRequest, JSONRPCResponse, MiddlewareFactory } from '@matrixai/rpc'; import type { ClientRPCRequestParams, ClientRPCResponseResult } from './types.js'; import type { Session } from '../sessions/index.js'; import type SessionManager from '../sessions/SessionManager.js'; import type KeyRing from '../keys/KeyRing.js'; declare function authenticationMiddlewareServer(sessionManager: SessionManager, keyRing: KeyRing): MiddlewareFactory, JSONRPCRequest, JSONRPCResponse, JSONRPCResponse>; declare function authenticationMiddlewareClient(session: Session): MiddlewareFactory, JSONRPCRequest, JSONRPCResponse, JSONRPCResponse>; export { authenticationMiddlewareServer, authenticationMiddlewareClient };