//#region src/core/state.d.ts type StateChange = () => void; type UnknownState = Record; interface SubscribeOptions { signal?: AbortSignal; } interface State { readonly current: Readonly; subscribe(callback: StateChange, options?: SubscribeOptions): () => void; } interface WritableState extends State { patch: (partial: Partial) => void; } declare function flush(): void; declare function createState(initial: T): WritableState; declare function isState(value: unknown): value is State; //#endregion export { State, StateChange, SubscribeOptions, UnknownState, WritableState, createState, flush, isState }; //# sourceMappingURL=state.d.ts.map