{
  "id": "@typed/id/Uuid7#Uuid7State",
  "canonicalId": "@typed/id#Uuid7State",
  "symbol": {
    "id": "@typed/id/Uuid7#Uuid7State",
    "packageName": "@typed/id",
    "moduleName": "Uuid7",
    "exportName": "Uuid7State",
    "kind": "class",
    "signatures": [
      "export declare class Uuid7State extends Uuid7State_base {\n    static readonly next: Effect.Effect<{\n        timestamp: number;\n        seq: number;\n        randomBytes: Uint8Array<ArrayBufferLike> & {\n            readonly length: 16;\n        };\n    }, Cause.IllegalArgumentError, Uuid7State>;\n    static readonly Default: Layer.Layer<Uuid7State, never, never>;\n}"
    ],
    "summary": "Process-local Effect service that produces monotonic UUID version 7 seeds.",
    "sections": {
      "Why": "Clock rollback and 32-bit sequence rollover are handled inside an explicit service, guaranteeing monotonicity only for one shared service instance.",
      "Ownership and lifetime": "Each Layer instance owns mutable timestamp and sequence state. A new process, worker, deployment, or Layer resets it; exact hydration identity must be serialized.",
      "Property: Default": "Provides Uuid7State from system time and Web Crypto entropy.",
      "Property: Default: Why": "The production default is explicit while remaining replaceable by deterministic service layers.",
      "Property: Default: Ownership and lifetime": "Layer acquisition creates one mutable sequence state owned by the surrounding Layer Scope.",
      "Property: next": "Reads the next validated seed from the current Uuid7State.",
      "Property: next: Why": "The accessor exposes ordered state through Effect's service channel and reports timestamp exhaustion as `IllegalArgumentError`.",
      "Property: next: Ownership and lifetime": "The Effect uses the state owned by its provided Layer and acquires no separate persistent resource."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { uuid7, Uuid7State } from \"@typed/id/Uuid7\"\nimport { Effect } from \"effect\"\nconst id = Effect.provide(uuid7, Uuid7State.Default)"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/id/src/Uuid7.ts",
      "line": 91
    },
    "since": "1.0.0",
    "category": "Sequence state"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/id/Uuid7#Uuid7State",
    "packageName": "@typed/id",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": "Uuid7",
    "consumerSpecifier": "@typed/id/Uuid7",
    "exportName": "Uuid7State",
    "qualifiedName": "Uuid7State",
    "declarationKey": "declaration:150ff6fd3faf6f85b16aea84",
    "family": "class",
    "signatures": [
      "export declare class Uuid7State extends Uuid7State_base {\n    static readonly next: Effect.Effect<{\n        timestamp: number;\n        seq: number;\n        randomBytes: Uint8Array<ArrayBufferLike> & {\n            readonly length: 16;\n        };\n    }, Cause.IllegalArgumentError, Uuid7State>;\n    static readonly Default: Layer.Layer<Uuid7State, never, never>;\n}"
    ],
    "sourceSpans": [
      {
        "file": "packages/id/src/Uuid7.ts",
        "start": {
          "line": 91,
          "column": 1
        },
        "end": {
          "line": 182,
          "column": 2
        }
      },
      {
        "file": "packages/id/src/Uuid7.ts",
        "start": {
          "line": 179,
          "column": 3
        },
        "end": {
          "line": 181,
          "column": 5
        }
      },
      {
        "file": "packages/id/src/Uuid7.ts",
        "start": {
          "line": 164,
          "column": 3
        },
        "end": {
          "line": 167,
          "column": 6
        }
      }
    ],
    "aliases": [
      "@typed/id#Uuid7State"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:150ff6fd3faf6f85b16aea84",
    "name": "Uuid7State",
    "family": "class",
    "facets": [
      {
        "family": "class",
        "syntaxKind": "ClassDeclaration",
        "signatures": [
          "export declare class Uuid7State extends Uuid7State_base {\n    static readonly next: Effect.Effect<{\n        timestamp: number;\n        seq: number;\n        randomBytes: Uint8Array<ArrayBufferLike> & {\n            readonly length: 16;\n        };\n    }, Cause.IllegalArgumentError, Uuid7State>;\n    static readonly Default: Layer.Layer<Uuid7State, never, never>;\n}"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/id/src/Uuid7.ts",
            "start": {
              "line": 91,
              "column": 1
            },
            "end": {
              "line": 182,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "static readonly Default: Layer.Layer<Uuid7State, never, never>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/id/src/Uuid7.ts",
            "start": {
              "line": 179,
              "column": 3
            },
            "end": {
              "line": 181,
              "column": 5
            }
          }
        ],
        "static": true,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "static readonly next: Effect.Effect<{\n    timestamp: number;\n    seq: number;\n    randomBytes: Uint8Array<ArrayBufferLike> & {\n        readonly length: 16;\n    };\n}, Cause.IllegalArgumentError, Uuid7State>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/id/src/Uuid7.ts",
            "start": {
              "line": 164,
              "column": 3
            },
            "end": {
              "line": 167,
              "column": 6
            }
          }
        ],
        "static": true,
        "readonly": true,
        "optional": false
      }
    ],
    "signatures": [
      "export declare class Uuid7State extends Uuid7State_base {\n    static readonly next: Effect.Effect<{\n        timestamp: number;\n        seq: number;\n        randomBytes: Uint8Array<ArrayBufferLike> & {\n            readonly length: 16;\n        };\n    }, Cause.IllegalArgumentError, Uuid7State>;\n    static readonly Default: Layer.Layer<Uuid7State, never, never>;\n}"
    ],
    "typeParameters": [],
    "summary": "Process-local Effect service that produces monotonic UUID version 7 seeds.",
    "sections": {
      "Why": "Clock rollback and 32-bit sequence rollover are handled inside an explicit service, guaranteeing monotonicity only for one shared service instance.",
      "Ownership and lifetime": "Each Layer instance owns mutable timestamp and sequence state. A new process, worker, deployment, or Layer resets it; exact hydration identity must be serialized.",
      "Property: Default": "Provides Uuid7State from system time and Web Crypto entropy.",
      "Property: Default: Why": "The production default is explicit while remaining replaceable by deterministic service layers.",
      "Property: Default: Ownership and lifetime": "Layer acquisition creates one mutable sequence state owned by the surrounding Layer Scope.",
      "Property: next": "Reads the next validated seed from the current Uuid7State.",
      "Property: next: Why": "The accessor exposes ordered state through Effect's service channel and reports timestamp exhaustion as `IllegalArgumentError`.",
      "Property: next: Ownership and lifetime": "The Effect uses the state owned by its provided Layer and acquires no separate persistent resource."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { uuid7, Uuid7State } from \"@typed/id/Uuid7\"\nimport { Effect } from \"effect\"\nconst id = Effect.provide(uuid7, Uuid7State.Default)"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/id/src/Uuid7.ts",
        "start": {
          "line": 91,
          "column": 1
        },
        "end": {
          "line": 182,
          "column": 2
        }
      },
      {
        "file": "packages/id/src/Uuid7.ts",
        "start": {
          "line": 179,
          "column": 3
        },
        "end": {
          "line": 181,
          "column": 5
        }
      },
      {
        "file": "packages/id/src/Uuid7.ts",
        "start": {
          "line": 164,
          "column": 3
        },
        "end": {
          "line": 167,
          "column": 6
        }
      }
    ],
    "since": "1.0.0",
    "category": "Sequence state"
  }
}
