import type { VKBridgeSend, VKBridgeSubscribeHandler } from './bridge.ts'; /** * API that can use middleware. */ export interface MiddlewareAPI { send: S; subscribe(listener: L): void; } /** * A middleware is a higher-order function that composes a dispatch function * to return a new `send` function. */ export type Middleware = (api: MiddlewareAPI) => (next: S) => S; //# sourceMappingURL=middleware.d.ts.map