export function isDurableObjectNamespace(binding) {
    return (typeof binding === "object" && binding.type === "durable_object_namespace");
}
/**
 * Creates a Durable Object namespace binding.
 *
 * @example
 * ```ts
 * // Create a basic Durable Object namespace for stateful chat rooms
 * const rooms = DurableObjectNamespace("chat-rooms", {
 *   className: "ChatRoom"
 * });
 * ```
 *
 * @example
 * ```ts
 * // Create a Durable Object with SQLite storage for user data
 * const users = DurableObjectNamespace("user-store", {
 *   className: "User",
 *   sqlite: true
 * });
 * ```
 *
 * @example
 * ```ts
 * // Create a Durable Object in production for game state management
 * const game = DurableObjectNamespace("game-state", {
 *   className: "GameState",
 *   scriptName: "game-worker",
 *   environment: "production"
 * });
 * ```
 */
export function DurableObjectNamespace(id, props) {
    return {
        type: "durable_object_namespace",
        id,
        className: props.className,
        scriptName: props.scriptName,
        environment: props.environment,
        sqlite: props.sqlite,
        namespaceId: props.namespaceId,
        __service__: undefined,
    };
}
//# sourceMappingURL=durable-object-namespace.js.map