import type { Scope } from "intentx-state-z"; import { LogicRuntime } from "../core"; import type { ComputedDef, LogicApi } from "../core"; import { IntentBus } from "../core/intentBus"; export type LogicActions = Record any>; export type LogicFactory, A extends LogicActions> = { name?: string; create(scope?: Scope, sharedBus?: IntentBus): LogicRuntime; createShareBus(scope: Scope, sharedBus: IntentBus): LogicRuntime; createIsolated(scope?: Scope): LogicRuntime; }; export type ExtractLogicTypes = T extends LogicFactory ? LogicApi : never;