import { InferServiceUi, ServiceDispatch, ServiceName, ServiceTypesLike, UiServiceRegistry, UiServices } from "@milaboratories/pl-model-common"; export type ServiceProxy = (serviceId: ServiceName) => InferServiceUi; /** * Builds a lazy services object from ServiceDispatch and UiServiceRegistry. * Each service is instantiated on first access. Errors are cached to prevent * repeated factory calls on failure. */ export declare function buildServices = Partial>(dispatch: ServiceDispatch, registry: UiServiceRegistry): S; /** * Builds a ServiceProxy from a ServiceDispatch. * Each service method call is forwarded to dispatch.callServiceMethod. */ export declare function createServiceProxy(dispatch: ServiceDispatch): ServiceProxy; //# sourceMappingURL=service_bridge.d.ts.map