import { PostRepository } from '@amityco/ts-sdk-react-native';
type UsePinnedPostCollection = {
    params: Parameters<typeof PostRepository.getPinnedPosts>[0];
    enabled?: boolean;
};
export declare const usePinnedPostCollection: ({ params, enabled, }: UsePinnedPostCollection) => {
    pinnedPosts: Amity.PinnedPost[];
    data: Amity.PinnedPost[];
    error: Error;
    isError: true;
    isPending: false;
    isLoading: false;
    isLoadingError: false;
    isRefetchError: true;
    isSuccess: false;
    isPlaceholderData: false;
    status: "error";
    fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    hasNextPage: boolean;
    hasPreviousPage: boolean;
    isFetchNextPageError: boolean;
    isFetchingNextPage: boolean;
    isFetchPreviousPageError: boolean;
    isFetchingPreviousPage: boolean;
    dataUpdatedAt: number;
    errorUpdatedAt: number;
    failureCount: number;
    failureReason: Error;
    errorUpdateCount: number;
    isFetched: boolean;
    isFetchedAfterMount: boolean;
    isFetching: boolean;
    isInitialLoading: boolean;
    isPaused: boolean;
    isRefetching: boolean;
    isStale: boolean;
    isEnabled: boolean;
    refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchStatus: import("@tanstack/query-core").FetchStatus;
    promise: Promise<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }>;
} | {
    pinnedPosts: Amity.PinnedPost[];
    data: Amity.PinnedPost[];
    error: null;
    isError: false;
    isPending: false;
    isLoading: false;
    isLoadingError: false;
    isRefetchError: false;
    isFetchNextPageError: false;
    isFetchPreviousPageError: false;
    isSuccess: true;
    isPlaceholderData: false;
    status: "success";
    fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    hasNextPage: boolean;
    hasPreviousPage: boolean;
    isFetchingNextPage: boolean;
    isFetchingPreviousPage: boolean;
    dataUpdatedAt: number;
    errorUpdatedAt: number;
    failureCount: number;
    failureReason: Error;
    errorUpdateCount: number;
    isFetched: boolean;
    isFetchedAfterMount: boolean;
    isFetching: boolean;
    isInitialLoading: boolean;
    isPaused: boolean;
    isRefetching: boolean;
    isStale: boolean;
    isEnabled: boolean;
    refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchStatus: import("@tanstack/query-core").FetchStatus;
    promise: Promise<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }>;
} | {
    pinnedPosts: Amity.PinnedPost[];
    data: Amity.PinnedPost[];
    error: Error;
    isError: true;
    isPending: false;
    isLoading: false;
    isLoadingError: true;
    isRefetchError: false;
    isFetchNextPageError: false;
    isFetchPreviousPageError: false;
    isSuccess: false;
    isPlaceholderData: false;
    status: "error";
    fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    hasNextPage: boolean;
    hasPreviousPage: boolean;
    isFetchingNextPage: boolean;
    isFetchingPreviousPage: boolean;
    dataUpdatedAt: number;
    errorUpdatedAt: number;
    failureCount: number;
    failureReason: Error;
    errorUpdateCount: number;
    isFetched: boolean;
    isFetchedAfterMount: boolean;
    isFetching: boolean;
    isInitialLoading: boolean;
    isPaused: boolean;
    isRefetching: boolean;
    isStale: boolean;
    isEnabled: boolean;
    refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchStatus: import("@tanstack/query-core").FetchStatus;
    promise: Promise<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }>;
} | {
    pinnedPosts: Amity.PinnedPost[];
    data: Amity.PinnedPost[];
    error: null;
    isError: false;
    isPending: true;
    isLoading: true;
    isLoadingError: false;
    isRefetchError: false;
    isFetchNextPageError: false;
    isFetchPreviousPageError: false;
    isSuccess: false;
    isPlaceholderData: false;
    status: "pending";
    fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    hasNextPage: boolean;
    hasPreviousPage: boolean;
    isFetchingNextPage: boolean;
    isFetchingPreviousPage: boolean;
    dataUpdatedAt: number;
    errorUpdatedAt: number;
    failureCount: number;
    failureReason: Error;
    errorUpdateCount: number;
    isFetched: boolean;
    isFetchedAfterMount: boolean;
    isFetching: boolean;
    isInitialLoading: boolean;
    isPaused: boolean;
    isRefetching: boolean;
    isStale: boolean;
    isEnabled: boolean;
    refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchStatus: import("@tanstack/query-core").FetchStatus;
    promise: Promise<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }>;
} | {
    pinnedPosts: Amity.PinnedPost[];
    data: Amity.PinnedPost[];
    error: null;
    isError: false;
    isPending: true;
    isLoadingError: false;
    isRefetchError: false;
    isFetchNextPageError: false;
    isFetchPreviousPageError: false;
    isSuccess: false;
    isPlaceholderData: false;
    status: "pending";
    fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    hasNextPage: boolean;
    hasPreviousPage: boolean;
    isFetchingNextPage: boolean;
    isFetchingPreviousPage: boolean;
    dataUpdatedAt: number;
    errorUpdatedAt: number;
    failureCount: number;
    failureReason: Error;
    errorUpdateCount: number;
    isFetched: boolean;
    isFetchedAfterMount: boolean;
    isFetching: boolean;
    isLoading: boolean;
    isInitialLoading: boolean;
    isPaused: boolean;
    isRefetching: boolean;
    isStale: boolean;
    isEnabled: boolean;
    refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchStatus: import("@tanstack/query-core").FetchStatus;
    promise: Promise<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }>;
} | {
    pinnedPosts: Amity.PinnedPost[];
    data: Amity.PinnedPost[];
    isError: false;
    error: null;
    isPending: false;
    isLoading: false;
    isLoadingError: false;
    isRefetchError: false;
    isSuccess: true;
    isPlaceholderData: true;
    isFetchNextPageError: false;
    isFetchPreviousPageError: false;
    status: "success";
    fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    hasNextPage: boolean;
    hasPreviousPage: boolean;
    isFetchingNextPage: boolean;
    isFetchingPreviousPage: boolean;
    dataUpdatedAt: number;
    errorUpdatedAt: number;
    failureCount: number;
    failureReason: Error;
    errorUpdateCount: number;
    isFetched: boolean;
    isFetchedAfterMount: boolean;
    isFetching: boolean;
    isInitialLoading: boolean;
    isPaused: boolean;
    isRefetching: boolean;
    isStale: boolean;
    isEnabled: boolean;
    refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchStatus: import("@tanstack/query-core").FetchStatus;
    promise: Promise<{
        pages: {
            data: Amity.PinnedPost[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }>;
};
export {};
//# sourceMappingURL=usePinnedPostCollection.d.ts.map