askeroo
Version:
A modern CLI prompt library with flow control, history navigation, and conditional prompts
48 lines • 1.57 kB
TypeScript
import { FieldState } from "../../types/index.js";
import { PromptTreeManager } from "../../core/prompt-tree.js";
export interface CompletedField {
id: string;
groupName?: string;
groupId?: string;
label: string;
shortLabel?: string;
value: string;
formattedValue?: string;
timestamp: number;
meta?: Record<string, any>;
}
export interface CompletedFieldsStoreState {
fieldState: FieldState;
promptOrderState?: {
rootFieldHistory: Array<{
id: string;
label: string;
type: string;
hideOnCompletion?: boolean;
}>;
groupFieldHistory: Map<string, Array<{
id: string;
label: string;
type: string;
hideOnCompletion?: boolean;
}>>;
};
treeManager: PromptTreeManager | null;
revision: number;
}
export declare const completedFieldsStore: import("../../core.js").Store<CompletedFieldsStoreState>;
export declare function setTreeManager(manager: PromptTreeManager): void;
export declare function notifyTreeChanged(): void;
export declare function getCompletedFieldsState(): CompletedFieldsStoreState;
export declare function getCompletedFields(): CompletedField[];
export declare function getCompletedFieldsData(): Array<{
id: string;
label: string;
value: any;
formattedValue?: string;
groupLabel?: string;
shortLabel?: string;
meta?: Record<string, any>;
}>;
export declare function clearCompletedFieldsStore(): void;
//# sourceMappingURL=completed-fields-store.d.ts.map