import type { Context } from '../types'; import type { ModuleAdapter } from './types'; /** * React hook for managing a list of module items * * Provides loading state, error handling, and automatic refresh * Supports context-aware listing and realtime subscriptions * * @example * ```tsx * const { items, loading, error, refresh } = useModuleList(NoteAdapter); * * // With context * const { items } = useModuleList(NoteAdapter, { * context: { type: 'project', id: '123' } * }); * ``` */ export declare function useModuleList(adapter: ModuleAdapter, opts?: { context?: Context; }): { readonly items: TItem[]; readonly loading: boolean; readonly error: string | null; readonly refresh: () => Promise<{ success: true; error?: undefined; } | { success: false; error: string; }>; }; //# sourceMappingURL=useModuleList.d.ts.map