import { VirtualListChangeOpts } from '@sanity/ui';
import { DocumentListPaneItem, SortOrder } from './types';
interface UseDocumentListOpts {
    filter: string;
    params: Record<string, unknown>;
    sortOrder?: SortOrder;
    apiVersion?: string;
}
interface DocumentListState {
    error: {
        message: string;
    } | null;
    fullList: boolean;
    handleListChange: ({ toIndex }: VirtualListChangeOpts) => void;
    isLoading: boolean;
    items: DocumentListPaneItem[] | null;
    onRetry?: (event: unknown) => void;
}
/**
 * @internal
 */
export declare function useDocumentList(opts: UseDocumentListOpts): DocumentListState;
export {};
//# sourceMappingURL=useDocumentList.d.ts.map