import type { PlaybookInfo, PlaybookDefinition, PlaybookRunResult, CreatePlaybookRequest } from "@polpo-ai/sdk"; export interface UsePlaybooksReturn { /** List of discovered playbooks (lightweight metadata). */ playbooks: PlaybookInfo[]; /** Loading state for the playbook list. */ loading: boolean; /** Refresh the playbook list from the server. */ refetch: () => void; /** Get the full definition (including mission body) for a playbook. */ getPlaybook: (name: string) => Promise; /** Run a playbook with parameters. */ runPlaybook: (name: string, params?: Record) => Promise; /** Create or update a playbook definition. */ createPlaybook: (req: CreatePlaybookRequest) => Promise<{ name: string; path: string; }>; isCreating: boolean; /** Delete a playbook by name. */ deletePlaybook: (name: string) => Promise; isDeleting: boolean; /** @deprecated Use playbooks instead. */ templates: PlaybookInfo[]; /** @deprecated Use getPlaybook instead. */ getTemplate: (name: string) => Promise; /** @deprecated Use runPlaybook instead. */ runTemplate: (name: string, params?: Record) => Promise; } /** * Hook for listing, inspecting, and running playbooks. * * Playbooks are parameterized mission definitions discovered from disk. * Running a playbook instantiates a Mission and executes it. */ export declare function usePlaybooks(): UsePlaybooksReturn; /** @deprecated Use usePlaybooks instead. */ export declare const useTemplates: typeof usePlaybooks; //# sourceMappingURL=use-playbooks.d.ts.map