{
  "id": "@typed/ui/index#Carousel.makeState",
  "canonicalId": "@typed/ui/Carousel#makeState",
  "symbol": {
    "id": "@typed/ui/index#Carousel.makeState",
    "packageName": "@typed/ui",
    "moduleName": "index",
    "exportName": "Carousel.makeState",
    "kind": "function",
    "signatures": [
      "export declare function makeState(initial: InitialState): Effect.Effect<RefSubject.HydratedRefSubject<{\n    readonly activeId: string;\n    readonly paused: boolean;\n}, Schema.SchemaError, never, never>, never, Scope.Scope>;"
    ],
    "summary": "Creates hydrated Carousel state. activeId is required and paused defaults to true.",
    "sections": {},
    "examples": [
      {
        "language": "ts",
        "code": "import * as Effect from \"effect/Effect\";\nimport * as Carousel from \"@typed/ui/Carousel\";\n\nconst program = Effect.scoped(\n  Effect.gen(function* () {\n    const state = yield* Carousel.makeState({ activeId: \"slide-1\" });\n    const collection = yield* Carousel.makeCollection();\n    return { state: yield* state, collection: yield* collection };\n  }),\n);"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/ui/src/Carousel.ts",
      "line": 111
    },
    "since": "1.0.0",
    "category": "Slide and rotation state"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/ui/index#Carousel.makeState",
    "packageName": "@typed/ui",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": "index",
    "consumerSpecifier": "@typed/ui/index",
    "exportName": "Carousel",
    "qualifiedName": "Carousel.makeState",
    "declarationKey": "declaration:15daba56f8ea50357c1a2cb6",
    "family": "function",
    "signatures": [
      "export declare function makeState(initial: InitialState): Effect.Effect<RefSubject.HydratedRefSubject<{\n    readonly activeId: string;\n    readonly paused: boolean;\n}, Schema.SchemaError, never, never>, never, Scope.Scope>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Carousel.ts",
        "start": {
          "line": 111,
          "column": 1
        },
        "end": {
          "line": 116,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/ui#Carousel.makeState",
      "@typed/ui/Carousel#makeState"
    ],
    "isAlias": true,
    "parentId": "@typed/ui/index#Carousel",
    "static": false,
    "importedFrom": "declaration:15daba56f8ea50357c1a2cb6"
  },
  "declaration": {
    "declarationKey": "declaration:15daba56f8ea50357c1a2cb6",
    "name": "makeState",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function makeState(initial: InitialState): Effect.Effect<RefSubject.HydratedRefSubject<{\n    readonly activeId: string;\n    readonly paused: boolean;\n}, Schema.SchemaError, never, never>, never, Scope.Scope>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/ui/src/Carousel.ts",
            "start": {
              "line": 111,
              "column": 1
            },
            "end": {
              "line": 116,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function makeState(initial: InitialState): Effect.Effect<RefSubject.HydratedRefSubject<{\n    readonly activeId: string;\n    readonly paused: boolean;\n}, Schema.SchemaError, never, never>, never, Scope.Scope>;"
    ],
    "typeParameters": [],
    "summary": "Creates hydrated Carousel state. activeId is required and paused defaults to true.",
    "sections": {},
    "examples": [
      {
        "language": "ts",
        "code": "import * as Effect from \"effect/Effect\";\nimport * as Carousel from \"@typed/ui/Carousel\";\n\nconst program = Effect.scoped(\n  Effect.gen(function* () {\n    const state = yield* Carousel.makeState({ activeId: \"slide-1\" });\n    const collection = yield* Carousel.makeCollection();\n    return { state: yield* state, collection: yield* collection };\n  }),\n);"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Carousel.ts",
        "start": {
          "line": 111,
          "column": 1
        },
        "end": {
          "line": 116,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Slide and rotation state"
  }
}
