{
  "id": "@typed/id/_sha#sha1",
  "canonicalId": "@typed/id/_sha#sha1",
  "symbol": {
    "id": "@typed/id/_sha#sha1",
    "packageName": "@typed/id",
    "moduleName": "_sha",
    "exportName": "sha1",
    "kind": "constant",
    "signatures": [
      "export declare const sha1: (data: BufferSource) => Effect.Effect<Uint8Array<ArrayBuffer>, never, never>;"
    ],
    "summary": "Digests bytes with Web Crypto SHA-1 and returns a fresh Uint8Array.",
    "sections": {
      "Why": "This published low-level helper exposes the exact hash required by UUID version 5; SHA-1 here is identity derivation, not password or signature security. Missing Web Crypto and rejected `subtle.digest` promises are Effect defects because the typed error channel is `never`.",
      "Ownership and lifetime": "Each Effect owns one asynchronous Web Crypto request and transfers a fresh result buffer; it retains no input after completion."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { sha1 } from \"@typed/id/_sha\"\nimport { Effect } from \"effect\"\nconst digest = Effect.runPromise(sha1(new TextEncoder().encode(\"name\")))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/id/src/_sha.ts",
      "line": 19
    },
    "since": "1.0.0",
    "category": "Hashing"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/id/_sha#sha1",
    "packageName": "@typed/id",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": "_sha",
    "consumerSpecifier": "@typed/id/_sha",
    "exportName": "sha1",
    "qualifiedName": "sha1",
    "declarationKey": "declaration:9a994b95586b2a05a4e43871",
    "family": "variable",
    "signatures": [
      "export declare const sha1: (data: BufferSource) => Effect.Effect<Uint8Array<ArrayBuffer>, never, never>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/id/src/_sha.ts",
        "start": {
          "line": 19,
          "column": 14
        },
        "end": {
          "line": 22,
          "column": 4
        }
      }
    ],
    "aliases": [],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:9a994b95586b2a05a4e43871",
    "name": "sha1",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const sha1: (data: BufferSource) => Effect.Effect<Uint8Array<ArrayBuffer>, never, never>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/id/src/_sha.ts",
            "start": {
              "line": 19,
              "column": 14
            },
            "end": {
              "line": 22,
              "column": 4
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const sha1: (data: BufferSource) => Effect.Effect<Uint8Array<ArrayBuffer>, never, never>;"
    ],
    "typeParameters": [],
    "summary": "Digests bytes with Web Crypto SHA-1 and returns a fresh Uint8Array.",
    "sections": {
      "Why": "This published low-level helper exposes the exact hash required by UUID version 5; SHA-1 here is identity derivation, not password or signature security. Missing Web Crypto and rejected `subtle.digest` promises are Effect defects because the typed error channel is `never`.",
      "Ownership and lifetime": "Each Effect owns one asynchronous Web Crypto request and transfers a fresh result buffer; it retains no input after completion."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { sha1 } from \"@typed/id/_sha\"\nimport { Effect } from \"effect\"\nconst digest = Effect.runPromise(sha1(new TextEncoder().encode(\"name\")))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/id/src/_sha.ts",
        "start": {
          "line": 19,
          "column": 14
        },
        "end": {
          "line": 22,
          "column": 4
        }
      }
    ],
    "since": "1.0.0",
    "category": "Hashing"
  }
}
