import { DashboardApi } from '../../core/dashboard-api.js'; import { DashboardSection, DashboardHookOptions } from '../../core/types.js'; /** * React hook for fetching dashboard section data. * * Thin wrapper around {@link DashboardDataController} that bridges * the controller's callbacks to React state. */ export declare function useDashboardData(section: DashboardSection, options?: DashboardHookOptions): { readonly refresh: () => void; readonly mutate: (path: string, method?: "post" | "delete", body?: unknown) => Promise; readonly getApi: () => DashboardApi; readonly data: T | null; readonly meta: { total: number; page: number; perPage: number; lastPage: number; } | null; readonly isLoading: boolean; readonly error: Error | null; };