{
  "id": "@typed/fx#Push.Push.Service",
  "canonicalId": "@typed/fx/Push#Push.Service",
  "symbol": {
    "id": "@typed/fx#Push.Push.Service",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Push.Push.Service",
    "kind": "interface",
    "signatures": [
      "interface Service<Self, Id extends string, A, E, B, E2> extends Push<A, E, Self, B, E2, Self> {\n    readonly id: Id;\n    readonly service: Context.Service<Self, Push<A, E, never, B, E2, never>>;\n    readonly make: <R = never, R2 = never>(sink: Sink.Sink<A, E, R>, fx: Fx.Fx<B, E2, R2>) => Layer.Layer<Self, never, Exclude<R | R2, Scope.Scope>>;\n}"
    ],
    "summary": "The static and Effect service surface returned by `Push.Service`.\n\nService lookup supplies the same bidirectional value to `run`, `onSuccess`,\nand `onFailure`. The `Self` service appears in both required-service channels;\nthe installed Push itself has those requirements captured by its Layer.",
    "sections": {
      "Why": "A named service lets application code send inputs and observe outputs without\nthreading a concrete Push through every function.",
      "Ownership and lifetime": "The Layer built by `make` owns service installation. It captures the Sink and\nFx construction contexts, excluding `Scope.Scope`; Scope-dependent resources\nmust therefore be acquired by the surrounding scoped program.",
      "Property: id": "The literal Context service identifier supplied to `Push.Service`.",
      "Property: id: Why": "A stable literal id makes the capability identifiable in Effect Context and\ndiagnostics without inspecting its implementation.",
      "Property: id: Ownership and lifetime": "The id is immutable metadata and owns no resource.",
      "Property: make": "Builds a Layer that installs a concrete Sink/Fx pair as this service.\n\nBuilding the Layer starts neither side. The Sink context is captured at\nLayer construction; each output run additionally receives its subscriber's\ncontext.",
      "Property: make: Why": "The Layer is the explicit composition boundary between implementation\nrequirements and consumers that depend only on `Self`.",
      "Property: make: Ownership and lifetime": "Layer lifetime owns service installation. `Scope.Scope` is excluded from\ncaptured requirements so scoped resources remain owned by the surrounding\nscoped Effect.",
      "Property: service": "The Effect Context service used by the static Push operations.",
      "Property: service: Why": "Exposing the Context service permits ordinary Effect service composition in\naddition to the convenience statics.",
      "Property: service: Ownership and lifetime": "This is an immutable service reference. The Layer providing `Self`, not the\nreference, owns installation and release."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import * as Push from \"@typed/fx/Push\"\n\nclass Events extends Push.Service<Events, string, never, string>()(\"Events\") {}\nconst id: \"Events\" = Events.id"
      },
      {
        "language": "ts",
        "code": "import * as Push from \"@typed/fx/Push\"\nclass Events extends Push.Service<Events, string, never, string>()(\"Events\") {}\nconst id: \"Events\" = Events.id"
      },
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as Fx from \"@typed/fx/Fx\"\nimport * as Push from \"@typed/fx/Push\"\nimport * as Sink from \"@typed/fx/Sink\"\nclass Events extends Push.Service<Events, string, never, string>()(\"Events\") {}\nconst Live = Events.make(Sink.make(() => Effect.void, () => Effect.void), Fx.succeed(\"ready\"))"
      },
      {
        "language": "ts",
        "code": "import * as Push from \"@typed/fx/Push\"\nclass Events extends Push.Service<Events, string, never, string>()(\"Events\") {}\nconst service = Events.service"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Push/Push.ts",
      "line": 141
    },
    "since": "1.0.0",
    "category": "Push services"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Push.Push.Service",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Push",
    "qualifiedName": "Push.Push.Service",
    "declarationKey": "declaration:42b20da2392a0a52218d3074",
    "family": "interface",
    "signatures": [
      "interface Service<Self, Id extends string, A, E, B, E2> extends Push<A, E, Self, B, E2, Self> {\n    readonly id: Id;\n    readonly service: Context.Service<Self, Push<A, E, never, B, E2, never>>;\n    readonly make: <R = never, R2 = never>(sink: Sink.Sink<A, E, R>, fx: Fx.Fx<B, E2, R2>) => Layer.Layer<Self, never, Exclude<R | R2, Scope.Scope>>;\n}"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 141,
          "column": 3
        },
        "end": {
          "line": 234,
          "column": 4
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 172,
          "column": 5
        },
        "end": {
          "line": 172,
          "column": 21
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 230,
          "column": 5
        },
        "end": {
          "line": 233,
          "column": 65
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 197,
          "column": 5
        },
        "end": {
          "line": 197,
          "column": 78
        }
      }
    ],
    "aliases": [
      "@typed/fx/Push#Push.Service"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Push.Push",
    "static": false,
    "importedFrom": "declaration:42b20da2392a0a52218d3074"
  },
  "declaration": {
    "declarationKey": "declaration:42b20da2392a0a52218d3074",
    "name": "Service",
    "family": "interface",
    "facets": [
      {
        "family": "interface",
        "syntaxKind": "InterfaceDeclaration",
        "signatures": [
          "interface Service<Self, Id extends string, A, E, B, E2> extends Push<A, E, Self, B, E2, Self> {\n    readonly id: Id;\n    readonly service: Context.Service<Self, Push<A, E, never, B, E2, never>>;\n    readonly make: <R = never, R2 = never>(sink: Sink.Sink<A, E, R>, fx: Fx.Fx<B, E2, R2>) => Layer.Layer<Self, never, Exclude<R | R2, Scope.Scope>>;\n}"
        ],
        "typeParameters": [
          "Self",
          "Id extends string",
          "A",
          "E",
          "B",
          "E2"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 141,
              "column": 3
            },
            "end": {
              "line": 234,
              "column": 4
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly id: Id;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 172,
              "column": 5
            },
            "end": {
              "line": 172,
              "column": 21
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly make: <R = never, R2 = never>(sink: Sink.Sink<A, E, R>, fx: Fx.Fx<B, E2, R2>) => Layer.Layer<Self, never, Exclude<R | R2, Scope.Scope>>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 230,
              "column": 5
            },
            "end": {
              "line": 233,
              "column": 65
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly service: Context.Service<Self, Push<A, E, never, B, E2, never>>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 197,
              "column": 5
            },
            "end": {
              "line": 197,
              "column": 78
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      }
    ],
    "signatures": [
      "interface Service<Self, Id extends string, A, E, B, E2> extends Push<A, E, Self, B, E2, Self> {\n    readonly id: Id;\n    readonly service: Context.Service<Self, Push<A, E, never, B, E2, never>>;\n    readonly make: <R = never, R2 = never>(sink: Sink.Sink<A, E, R>, fx: Fx.Fx<B, E2, R2>) => Layer.Layer<Self, never, Exclude<R | R2, Scope.Scope>>;\n}"
    ],
    "typeParameters": [
      "Self",
      "Id extends string",
      "A",
      "E",
      "B",
      "E2"
    ],
    "summary": "The static and Effect service surface returned by `Push.Service`.\n\nService lookup supplies the same bidirectional value to `run`, `onSuccess`,\nand `onFailure`. The `Self` service appears in both required-service channels;\nthe installed Push itself has those requirements captured by its Layer.",
    "sections": {
      "Why": "A named service lets application code send inputs and observe outputs without\nthreading a concrete Push through every function.",
      "Ownership and lifetime": "The Layer built by `make` owns service installation. It captures the Sink and\nFx construction contexts, excluding `Scope.Scope`; Scope-dependent resources\nmust therefore be acquired by the surrounding scoped program.",
      "Property: id": "The literal Context service identifier supplied to `Push.Service`.",
      "Property: id: Why": "A stable literal id makes the capability identifiable in Effect Context and\ndiagnostics without inspecting its implementation.",
      "Property: id: Ownership and lifetime": "The id is immutable metadata and owns no resource.",
      "Property: make": "Builds a Layer that installs a concrete Sink/Fx pair as this service.\n\nBuilding the Layer starts neither side. The Sink context is captured at\nLayer construction; each output run additionally receives its subscriber's\ncontext.",
      "Property: make: Why": "The Layer is the explicit composition boundary between implementation\nrequirements and consumers that depend only on `Self`.",
      "Property: make: Ownership and lifetime": "Layer lifetime owns service installation. `Scope.Scope` is excluded from\ncaptured requirements so scoped resources remain owned by the surrounding\nscoped Effect.",
      "Property: service": "The Effect Context service used by the static Push operations.",
      "Property: service: Why": "Exposing the Context service permits ordinary Effect service composition in\naddition to the convenience statics.",
      "Property: service: Ownership and lifetime": "This is an immutable service reference. The Layer providing `Self`, not the\nreference, owns installation and release."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import * as Push from \"@typed/fx/Push\"\n\nclass Events extends Push.Service<Events, string, never, string>()(\"Events\") {}\nconst id: \"Events\" = Events.id"
      },
      {
        "language": "ts",
        "code": "import * as Push from \"@typed/fx/Push\"\nclass Events extends Push.Service<Events, string, never, string>()(\"Events\") {}\nconst id: \"Events\" = Events.id"
      },
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as Fx from \"@typed/fx/Fx\"\nimport * as Push from \"@typed/fx/Push\"\nimport * as Sink from \"@typed/fx/Sink\"\nclass Events extends Push.Service<Events, string, never, string>()(\"Events\") {}\nconst Live = Events.make(Sink.make(() => Effect.void, () => Effect.void), Fx.succeed(\"ready\"))"
      },
      {
        "language": "ts",
        "code": "import * as Push from \"@typed/fx/Push\"\nclass Events extends Push.Service<Events, string, never, string>()(\"Events\") {}\nconst service = Events.service"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 141,
          "column": 3
        },
        "end": {
          "line": 234,
          "column": 4
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 172,
          "column": 5
        },
        "end": {
          "line": 172,
          "column": 21
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 230,
          "column": 5
        },
        "end": {
          "line": 233,
          "column": 65
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 197,
          "column": 5
        },
        "end": {
          "line": 197,
          "column": 78
        }
      }
    ],
    "since": "1.0.0",
    "category": "Push services"
  }
}
