UNPKG

@datalayer/core

Version:
12 lines (11 loc) 527 B
import type { IAIAgent } from '../../models'; export type AIAgentState = { aiAgents: readonly IAIAgent[]; addAIAgent: (aiAgent: IAIAgent) => void; deleteAIAgent: (documentId: string) => void; updateAIAgent: (documentId: string, runtimeId?: string) => void; }; export declare const aiAgentStore: import("zustand").StoreApi<AIAgentState>; export declare function useAIAgentStore(): AIAgentState; export declare function useAIAgentStore<T>(selector: (state: AIAgentState) => T): T; export default useAIAgentStore;