type RetriedPaginator = { items: unknown[] | undefined; }; export type UseFirstPageLoadRetryParams = { /** The error of the failed first page, while there is one (see `getFirstPageLoadError`). */ firstPageLoadError: Error | undefined; /** Announced when a retry loads the first page. */ loadedMessage: string; /** The paginator the retry loads the first page into. */ paginator: RetriedPaginator; /** Queries the first page again. */ reload: () => Promise; }; /** * Retries a paginated list's failed first page. While the retry runs, the failure it retries stays * the error to show, so the component showing it stays mounted and its focused retry button keeps * focus, also when the retry fails and its error replaces the old one. A retry that loads the first * page is announced. * * @returns `error`, the error to show (`undefined` once the first page loads), `isRetrying`, and * `retry`, which starts a retry unless one is running or no first-page error is shown. */ export declare const useFirstPageLoadRetry: ({ firstPageLoadError, loadedMessage, paginator, reload, }: UseFirstPageLoadRetryParams) => { error: Error | undefined; isRetrying: boolean; retry: import("../../..").StableCallback<[], void>; }; export {}; //# sourceMappingURL=useFirstPageLoadRetry.d.ts.map