import { SCCommentsOrderBy, SCCommentType } from '../types/comment'; import { SCFeedObjectType, SCFeedObjectTypologyType } from '../types'; /** * Interface SCCommentsObjectType */ export interface SCCommentsObjectType { componentLoaded: boolean; comments: SCCommentType[]; total: number; next: string; previous: string; isLoadingNext: boolean; isLoadingPrevious: boolean; page: number; reload: boolean; } /** * @hidden * We have complex state logic that involves multiple sub-values, * so useReducer is preferable to useState. * Define all possible auth action types label * Use this to export actions and dispatch an action */ export declare const commentsObjectActionTypes: { LOADING_NEXT: string; LOADING_PREVIOUS: string; DATA_NEXT_LOADED: string; DATA_PREVIOUS_LOADED: string; DATA_RELOAD: string; DATA_RELOADED: string; }; /** :::info This custom hooks is used to fetch paginated comments. ::: * @param id * @param feedObject * @param feedObjectType * @param offset * @param pageSize * @param orderBy * @param parent */ export default function useSCFetchCommentObjects(props: { id?: number; feedObject?: SCFeedObjectType; feedObjectType: SCFeedObjectTypologyType; offset?: number; pageSize?: number; orderBy?: SCCommentsOrderBy; parent?: number; onChangePage?: (page: any) => any; }): any; //# sourceMappingURL=useSCFetchCommentObjects.d.ts.map