/**
 * Creates a reference to a Cloudflare Worker service.
 *
 * @example
 * // Create a reference to a Cloudflare Worker service:
 * const ref = WorkerRef({
 *   service: "my-worker",
 *   environment: "production",
 *   namespace: "main"
 * });
 *
 * // Optionally, you can specify only the service:
 * const ref2 = WorkerRef({ service: "my-worker" });
 *
 * // You can also specify the RPC type for stronger typing:
 * interface MyWorkerRPC extends Rpc.WorkerEntrypointBranded {
 *   myMethod(arg: string): Promise<number>;
 * }
 * const typedRef = WorkerRef<MyWorkerRPC>({ service: "my-worker" });
 */
export function WorkerRef(options) {
    return {
        ...options,
        type: "service",
    };
}
//# sourceMappingURL=worker-ref.js.map