UNPKG

askeroo

Version:

A modern CLI prompt library with flow control, history navigation, and conditional prompts

18 lines 818 B
/** * Core utilities for creating custom prompts * * Import from: askeroo/core * * @example * // Modern approach with store factory * import { createPrompt, createStore } from "askeroo/core"; * * // Or manual state management * import { createPrompt, useExternalState, notifyExternalStateChange } from "askeroo/core"; */ export { createPrompt, registerPlugin, globalRegistry, type PromptPlugin, } from "./core/registry.js"; export { createStore, type Store } from "./core/store.js"; export { useExternalState, notifyExternalStateChange, PromptStateProvider, usePromptState, getPromptStateNotifier, setPromptStateNotifier, } from "./core/plugin-state-context.js"; export { createRuntime } from "./core/core.js"; export type { PluginComponentProps } from "./types/index.js"; //# sourceMappingURL=core.d.ts.map