/** * useAutoSave Hook * * Provides auto-save functionality with debouncing and retry logic. */ import type { P1Client } from '@pantheon-systems/css-client'; import type { UseAutoSaveOptions, UseAutoSaveReturn } from '../core/types.js'; interface UseAutoSaveParams { client: P1Client; siteId: string; branchId: string; documentId: string; options?: UseAutoSaveOptions; } /** * Hook for auto-saving Puck data with debouncing and retry logic. * * @param params - Configuration for auto-save * @returns Auto-save state and controls * * @example * ```tsx * const { save, status, lastSaved } = useAutoSave({ * client, * siteId, * branchId, * documentId, * options: { debounceMs: 3000 }, * }); * * // In Puck onChange handler * save(data)} /> * ``` */ export declare function useAutoSave({ client, siteId, branchId, documentId, options, }: UseAutoSaveParams): UseAutoSaveReturn; export {};