import React, { ReactNode } from 'react';
import { RaRecord } from "../../types.cjs";
import { ListControllerResult } from "./useListController.cjs";
/**
* Render prop version of useListContextWithProps
*
* @example
* const BookList = () => (
*
* (
*
* {data && data.map(record => (
* - {record.title}
* ))}
*
* )} />
*
* );
*/
export declare const WithListContext: ({ empty, loading, offline, error, render, children, ...props }: WithListContextProps) => React.ReactNode;
export interface WithListContextProps extends React.PropsWithChildren, 'data' | 'total' | 'isPending'>>> {
render?: (context: Partial>) => ReactNode;
loading?: React.ReactNode;
offline?: React.ReactNode;
errorState?: ListControllerResult['error'];
error?: React.ReactNode;
empty?: React.ReactNode;
/**
* @deprecated
*/
label?: string;
}
//# sourceMappingURL=WithListContext.d.ts.map