import { Dispatch } from "./program"; export declare class Services { private readonly dispatch; private readonly services; private readonly env; constructor(dispatch: Dispatch, env: Record); handleRequests(requests: ReadonlyArray>): void; updateSubscriptions(subscriptions: ReadonlyArray>): void; private service; } /** Types */ export interface Service { handleRequest(request: ServiceReq): void; updateSubscriptions(subscriptions: ReadonlyArray): void; } export interface Req { service: ServiceClass; request: ServiceReq; } export interface Sub { service: ServiceClass; subscription: ServiceSub; } export interface ServiceClass { readonly id?: string; new (dispatch: Dispatch, env: any): Service; } //# sourceMappingURL=services.d.ts.map