import { BaseAction } from '@script-bridge/protocol'; import { Session } from './session'; type Awaitable = Promise | Value; export type ActionHandler = (action: ClientAction) => Awaitable; /** Represents action from client */ export type ClientAction = { readonly data: A['request']; readonly respond: (data: A['response']) => void; readonly session: Session; }; export {};