import { UserRepository } from '@amityco/ts-sdk-react-native';
type UseUserCollection = {
    params: Parameters<typeof UserRepository.getUsers>[0];
    enabled?: boolean;
};
export declare const useUserCollection: ({ params, enabled, }: UseUserCollection) => {
    users: Amity.User[];
    data: Amity.User[];
    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.User[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
        pages: {
            data: Amity.User[];
            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.User[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchStatus: import("@tanstack/query-core").FetchStatus;
    promise: Promise<{
        pages: {
            data: Amity.User[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }>;
} | {
    users: Amity.User[];
    data: Amity.User[];
    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.User[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
        pages: {
            data: Amity.User[];
            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.User[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchStatus: import("@tanstack/query-core").FetchStatus;
    promise: Promise<{
        pages: {
            data: Amity.User[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }>;
} | {
    users: Amity.User[];
    data: Amity.User[];
    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.User[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
        pages: {
            data: Amity.User[];
            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.User[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchStatus: import("@tanstack/query-core").FetchStatus;
    promise: Promise<{
        pages: {
            data: Amity.User[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }>;
} | {
    users: Amity.User[];
    data: Amity.User[];
    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.User[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
        pages: {
            data: Amity.User[];
            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.User[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchStatus: import("@tanstack/query-core").FetchStatus;
    promise: Promise<{
        pages: {
            data: Amity.User[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }>;
} | {
    users: Amity.User[];
    data: Amity.User[];
    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.User[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
        pages: {
            data: Amity.User[];
            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.User[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchStatus: import("@tanstack/query-core").FetchStatus;
    promise: Promise<{
        pages: {
            data: Amity.User[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }>;
} | {
    users: Amity.User[];
    data: Amity.User[];
    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.User[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
        pages: {
            data: Amity.User[];
            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.User[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }, Error>>;
    fetchStatus: import("@tanstack/query-core").FetchStatus;
    promise: Promise<{
        pages: {
            data: Amity.User[];
            hasNextPage?: boolean;
            onNextPage?: () => void;
        }[];
        pageParams: (() => void)[];
    }>;
};
export {};
//# sourceMappingURL=useUserCollection.d.ts.map