import type { PromptContext, Prompts, Subset } from './types.js'; import { PromptsType } from './types.js'; import type { ChartPromptsAnswer, TablePromptsAnswer, PagePromptsAnswer, FilterBarPromptsAnswer, FormPromptsAnswer, BuildingBlockTypePromptsAnswer, RichTextEditorPromptsAnswer, RichTextEditorButtonGroupsPromptsAnswer } from '../building-block/prompts/questions/index.js'; import { generateBuildingBlock, getSerializedFileContent } from '../building-block/index.js'; type AnswerMapping = { [PromptsType.Chart]: ChartPromptsAnswer; [PromptsType.Table]: TablePromptsAnswer; [PromptsType.Page]: PagePromptsAnswer; [PromptsType.FilterBar]: FilterBarPromptsAnswer; [PromptsType.Form]: FormPromptsAnswer; [PromptsType.RichTextEditor]: RichTextEditorPromptsAnswer; [PromptsType.RichTextEditorButtonGroups]: RichTextEditorButtonGroupsPromptsAnswer; [PromptsType.BuildingBlocks]: BuildingBlockTypePromptsAnswer; }; type BasePrompt = { type: T; answers: AnswerMapping[T]; initialAnswers?: Subset; }; export type SupportedPrompts = BasePrompt | BasePrompt | BasePrompt | BasePrompt | BasePrompt | BasePrompt | BasePrompt | BasePrompt; export type SupportedGeneratorPrompts = BasePrompt | BasePrompt | BasePrompt | BasePrompt | BasePrompt | BasePrompt; export type NarrowPrompt = N extends { type: T; } ? N : never; export type SupportedPromptsMap = { [N in SupportedPrompts as N['type']]: (context: PromptContext) => Promise> | Prompts; }; export declare const PromptsQuestionsMap: SupportedPromptsMap; export declare const PromptsGeneratorsMap: { chart: typeof generateBuildingBlock; table: typeof generateBuildingBlock; "filter-bar": typeof generateBuildingBlock; form: typeof generateBuildingBlock; "rich-text-editor": typeof generateBuildingBlock; "rich-text-editor-button-groups": typeof generateBuildingBlock; page: typeof generateBuildingBlock; }; export declare const PromptsCodePreviewMap: { chart: typeof getSerializedFileContent; table: typeof getSerializedFileContent; "filter-bar": typeof getSerializedFileContent; form: typeof getSerializedFileContent; "rich-text-editor": typeof getSerializedFileContent; "rich-text-editor-button-groups": typeof getSerializedFileContent; page: typeof getSerializedFileContent; }; export type SupportedGeneratorAnswers = TablePromptsAnswer | ChartPromptsAnswer | FilterBarPromptsAnswer | FormPromptsAnswer | PagePromptsAnswer | RichTextEditorPromptsAnswer | RichTextEditorButtonGroupsPromptsAnswer; export {}; //# sourceMappingURL=map.d.ts.map