import type * as otel from '@opentelemetry/api'; import { State } from '@livestore/livestore'; import { Effect, Schema } from '@livestore/utils/effect'; export type Todo = { id: string; text: string; completed: boolean; }; export type Filter = 'all' | 'active' | 'completed'; export type AppState = { newTodoText: string; filter: Filter; }; export declare const todos: State.SQLite.TableDef; default: import("effect/Option").None; nullable: false; primaryKey: true; autoIncrement: false; }; readonly text: { columnType: "text"; schema: Schema.Schema; default: import("effect/Option").Some<"">; nullable: false; primaryKey: false; autoIncrement: false; }; readonly completed: { columnType: "integer"; schema: Schema.Schema; default: import("effect/Option").Some; nullable: false; primaryKey: false; autoIncrement: false; }; }>, State.SQLite.WithDefaults<{ readonly id: { columnType: "text"; schema: Schema.Schema; default: import("effect/Option").None; nullable: false; primaryKey: true; autoIncrement: false; }; readonly text: { columnType: "text"; schema: Schema.Schema; default: import("effect/Option").Some<"">; nullable: false; primaryKey: false; autoIncrement: false; }; readonly completed: { columnType: "integer"; schema: Schema.Schema; default: import("effect/Option").Some; nullable: false; primaryKey: false; autoIncrement: false; }; }>, Schema.Schema<{ readonly id: string; readonly text: string; readonly completed: boolean; }, { readonly id: string; readonly text: string; readonly completed: number; }, never>>; export declare const app: State.SQLite.ClientDocumentTableDef<"app", { readonly filter: string; readonly newTodoText: string; }, { readonly filter: string; readonly newTodoText: string; }, { partialSet: true; default: { id: undefined; value: { readonly newTodoText: ""; readonly filter: "all"; }; }; }>; export declare const tables: { todos: State.SQLite.TableDef; default: import("effect/Option").None; nullable: false; primaryKey: true; autoIncrement: false; }; readonly text: { columnType: "text"; schema: Schema.Schema; default: import("effect/Option").Some<"">; nullable: false; primaryKey: false; autoIncrement: false; }; readonly completed: { columnType: "integer"; schema: Schema.Schema; default: import("effect/Option").Some; nullable: false; primaryKey: false; autoIncrement: false; }; }>, State.SQLite.WithDefaults<{ readonly id: { columnType: "text"; schema: Schema.Schema; default: import("effect/Option").None; nullable: false; primaryKey: true; autoIncrement: false; }; readonly text: { columnType: "text"; schema: Schema.Schema; default: import("effect/Option").Some<"">; nullable: false; primaryKey: false; autoIncrement: false; }; readonly completed: { columnType: "integer"; schema: Schema.Schema; default: import("effect/Option").Some; nullable: false; primaryKey: false; autoIncrement: false; }; }>, Schema.Schema<{ readonly id: string; readonly text: string; readonly completed: boolean; }, { readonly id: string; readonly text: string; readonly completed: number; }, never>>; app: State.SQLite.ClientDocumentTableDef<"app", { readonly filter: string; readonly newTodoText: string; }, { readonly filter: string; readonly newTodoText: string; }, { partialSet: true; default: { id: undefined; value: { readonly newTodoText: ""; readonly filter: "all"; }; }; }>; }; export declare const events: { todoCreated: State.SQLite.EventDef<"todo.created", { readonly id: string; readonly text: string; readonly completed: boolean; }, { readonly id: string; readonly text: string; readonly completed: boolean; }>; todoCompleted: State.SQLite.EventDef<"todo.completed", { readonly id: string; }, { readonly id: string; }>; }; export declare const state: import("@livestore/livestore").InternalState; export declare const schema: import("@livestore/livestore").FromInputSchema.DeriveSchema<{ state: import("@livestore/livestore").InternalState; events: { todoCreated: State.SQLite.EventDef<"todo.created", { readonly id: string; readonly text: string; readonly completed: boolean; }, { readonly id: string; readonly text: string; readonly completed: boolean; }>; todoCompleted: State.SQLite.EventDef<"todo.completed", { readonly id: string; }, { readonly id: string; }>; }; }>; export declare const makeTodoMvc: ({ otelTracer, otelContext, }?: { otelTracer?: otel.Tracer; otelContext?: otel.Context; }) => Effect.Effect; todoCompleted: State.SQLite.EventDef<"todo.completed", { readonly id: string; }, { readonly id: string; }>; }; }>, {}>, import("@livestore/common").UnknownError, import("effect/Scope").Scope>; //# sourceMappingURL=fixture.d.ts.map