import { State } from '@livestore/common/schema'; import type { MockSyncBackend } from '@livestore/common/sync'; import { EventFactory } from '@livestore/common/testing'; import { Effect, FileSystem, type Mailbox, Schema } from '@livestore/utils/effect'; declare const DynamicImportError_base: Schema.TaggedErrorClass; } & { cause: typeof Schema.Defect; path: typeof Schema.String; }>; declare class DynamicImportError extends DynamicImportError_base { } export declare const events: { itemAdded: State.SQLite.EventDef<"itemAdded", { readonly id: string; readonly title: string; }, { readonly id: string; readonly title: string; }>; }; export declare const schema: import("@livestore/common/schema").FromInputSchema.DeriveSchema<{ state: import("@livestore/common/schema").InternalState; events: { itemAdded: State.SQLite.EventDef<"itemAdded", { readonly id: string; readonly title: string; }, { readonly id: string; readonly title: string; }>; }; }>; /** * Creates a temporary config module (schema + mock backend) and cleans it up afterwards. * Returns the module path plus handles to the backend and connection event mailbox, keeping lifecycle assertions local to each test. */ export declare const useMockConfig: Effect.Effect<{ configPath: string; mockBackend: MockSyncBackend; connectionEvents: Mailbox.Mailbox<"connect" | "disconnect", never>; }, import("@effect/platform/Error").PlatformError | DynamicImportError, FileSystem.FileSystem | import("effect/Scope").Scope>; export declare const makeEventFactory: () => { itemAdded: { next: (args: { readonly id: string; readonly title: string; }) => { readonly name: string; readonly args: any; readonly seqNum: number & import("effect/Brand").Brand<"GlobalEventSequenceNumber">; readonly parentSeqNum: number & import("effect/Brand").Brand<"GlobalEventSequenceNumber">; readonly clientId: string; readonly sessionId: string; }; advanceTo: (seq: number, parent?: EventFactory.SequenceValue) => void; setParent: (parent: EventFactory.SequenceValue) => void; current: () => { seq: number; parent: EventFactory.SequenceValue; }; }; }; export {}; //# sourceMappingURL=mock-config.d.ts.map