UNPKG

@assistant-ui/react

Version:

TypeScript/React library for AI Chat

14 lines 501 B
import { ResourceElement } from "@assistant-ui/tap"; import { Unsubscribe } from "../../types"; export interface Store<TState> { /** * Get the current state of the store. */ getState(): TState; /** * Subscribe to the store. */ subscribe(listener: () => void): Unsubscribe; } export declare const asStore: <TState, TProps>(props: ResourceElement<TState, TProps>) => ResourceElement<Store<TState>, ResourceElement<TState, TProps>>; //# sourceMappingURL=store.d.ts.map