import type * as HttpApi from "../http-api/HttpApi.ts"; import type * as HttpApiGroup from "../http-api/HttpApiGroup.ts"; import * as Layer from "../Layer.ts"; import type * as Rpc from "../rpc/Rpc.ts"; import type * as Entity from "./Entity.ts"; import type { Sharding } from "./Sharding.ts"; /** * Creates HTTP API handlers for an entity proxy group. * * **Details** * * Each generated endpoint reads the `entityId` path parameter and forwards the * request payload to the corresponding entity client method, including discard * endpoints. * * @stability unstable * @category layers * @since 4.0.0 */ export declare const layerHttpApi: , Type extends string, Rpcs extends Rpc.Any>(api: HttpApi.HttpApi, identifier: Identifier, entity: Entity.Entity) => Layer.Layer, never, Sharding | Rpc.ServicesServer | Rpc.ServicesClient>; /** * Creates RPC handlers for the group produced by `EntityProxy.toRpcGroup`. * * **Details** * * The handlers forward each prefixed proxy RPC to the target entity client using * the `entityId` embedded in the proxy payload. * * @stability unstable * @category layers * @since 4.0.0 */ export declare const layerRpcHandlers: (entity: Entity.Entity) => Layer.Layer, never, Sharding | Rpc.ServicesServer | Rpc.ServicesClient>; /** * Union of RPC handler services required to serve the proxy RPCs for an entity. * * **Details** * * Includes both the normal prefixed RPC handler and its discard variant. * * @stability unstable * @category services * @since 4.0.0 */ export type RpcHandlers = Rpcs extends Rpc.Rpc ? Rpc.Handler<`${Prefix}.${_Tag}`> | Rpc.Handler<`${Prefix}.${_Tag}Discard`> : never; //# sourceMappingURL=EntityProxyServer.d.ts.map