import type { Action } from '../app-reducer.js'; import type { PromptPickEntry } from '../components/prompt-picker.js'; export interface PromptLibraryEntry { slug: string; title: string; description: string; category: string; source: string; content: string; favorite: boolean; } export interface PromptPickerOpenPayload { all: PromptPickEntry[]; categories: string[]; recentSlugs: string[]; } export declare function buildPromptPickerPayload(all: PromptLibraryEntry[], recentSlugs: string[]): PromptPickerOpenPayload; export interface UsePromptPickerOptions { projectRoot: string; dispatch: React.Dispatch; } /** * Lazily loads the prompt library and opens the TUI prompt picker. */ export declare function usePromptPicker({ projectRoot, dispatch }: UsePromptPickerOptions): { openPromptPicker: () => Promise; setPromptFavorite: (slug: string, favorite: boolean) => Promise; }; //# sourceMappingURL=use-prompt-picker.d.ts.map