import { ICaseComment } from '@cee-eng/hydrajs/@types/api/public/case'; import { IUseCaseCommentsOptions } from './types'; export interface IUseCaseCommentsReturn { comments: ICaseComment[]; loading: boolean; error: Error | undefined; refetch: () => Promise; fetchMore: () => Promise; hasNextPage: boolean; isLoadingMore: boolean; loadMoreError: boolean; loadMoreRetryCount: number; retryLoadMore: () => Promise; } /** * Fetches case comments from the Salesforce GraphQL API for a given case ID. * Supports custom sort ordering and pagination clamping (1–2000 records). * External / customer users (no VIEW_PRIVATE_COMMENT) only receive Public comments. * Returns mapped ICaseComment[] along with loading, error, and refetch handles. * * Pagination uses Apollo's fetchMore; pages accumulate in the cache via * relayStylePagination. nextFetchPolicy returns 'cache-first' after the first * result so cache-and-network does not refetch and overwrite merged pages. */ export declare function useCaseComments({ caseId, skip, orderBy, first, publicOnly, after, }: IUseCaseCommentsOptions): IUseCaseCommentsReturn; //# sourceMappingURL=useCaseComments.d.ts.map