type UseAddMemberProps = {
    communityId?: string;
};
declare function useAddMember({ communityId }?: UseAddMemberProps): {
    styles: {
        container: {
            flex: number;
            backgroundColor: string;
        };
        searchInputContainer: {
            paddingVertical: number;
            paddingHorizontal: number;
        };
        checkBoxGroup: {
            flex: number;
        };
        userContainer: {
            paddingBottom: number;
        };
        skeletonContainer: {
            padding: number;
            gap: number;
        };
        keyboardAvoidContainer: {
            flex: number;
        };
        limitCharacterSearchContainer: {
            padding: number;
            flex: number;
            justifyContent: "center";
            alignItems: "center";
        };
        selectedUsersContainer: {
            padding: number;
            borderBottomWidth: number;
            backgroundColor: string;
            borderBottomColor: string;
        };
        selectedUsersContentContainer: {
            gap: number;
            flexDirection: "row";
            alignItems: "center";
        };
        userOption: {
            gap: number;
        };
        userOptionLabel: {
            flex: number;
            gap: number;
            flexDirection: "row";
            alignItems: "center";
        };
        userImage: {
            width: number;
            height: number;
            borderRadius: number;
            objectFit: "cover";
        };
        userName: {
            flexShrink: number;
        };
        submitButtonContainer: {
            flex: number;
            left: number;
            right: number;
            bottom: number;
            padding: number;
            zIndex: number;
            borderTopWidth: number;
            position: "absolute";
            paddingBottom: number;
            borderTopColor: string;
            backgroundColor: string;
        };
    };
    theme: import("../../../../../core/providers/AmityUIKitProvider").MyMD3Theme;
    isDirty: boolean;
    isSubmitting: boolean;
    isValid: boolean;
    handleSubmit: import("react-hook-form").UseFormHandleSubmit<{
        users: Amity.User[];
        search?: string;
    }, {
        users: Amity.User[];
        search?: string;
    }>;
    control: import("react-hook-form").Control<{
        users: Amity.User[];
        search?: string;
    }, any, {
        users: Amity.User[];
        search?: string;
    }>;
    collection: {
        searchUsers: Amity.InternalUser[];
        data: Amity.InternalUser[];
        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.InternalUser[];
                hasNextPage?: boolean;
                onNextPage?: () => void;
            }[];
            pageParams: (() => void)[];
        }, Error>>;
        fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
            pages: {
                data: Amity.InternalUser[];
                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.InternalUser[];
                hasNextPage?: boolean;
                onNextPage?: () => void;
            }[];
            pageParams: (() => void)[];
        }, Error>>;
        fetchStatus: import("@tanstack/query-core").FetchStatus;
        promise: Promise<{
            pages: {
                data: Amity.InternalUser[];
                hasNextPage?: boolean;
                onNextPage?: () => void;
            }[];
            pageParams: (() => void)[];
        }>;
    } | {
        searchUsers: Amity.InternalUser[];
        data: Amity.InternalUser[];
        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.InternalUser[];
                hasNextPage?: boolean;
                onNextPage?: () => void;
            }[];
            pageParams: (() => void)[];
        }, Error>>;
        fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
            pages: {
                data: Amity.InternalUser[];
                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.InternalUser[];
                hasNextPage?: boolean;
                onNextPage?: () => void;
            }[];
            pageParams: (() => void)[];
        }, Error>>;
        fetchStatus: import("@tanstack/query-core").FetchStatus;
        promise: Promise<{
            pages: {
                data: Amity.InternalUser[];
                hasNextPage?: boolean;
                onNextPage?: () => void;
            }[];
            pageParams: (() => void)[];
        }>;
    } | {
        searchUsers: Amity.InternalUser[];
        data: Amity.InternalUser[];
        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.InternalUser[];
                hasNextPage?: boolean;
                onNextPage?: () => void;
            }[];
            pageParams: (() => void)[];
        }, Error>>;
        fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
            pages: {
                data: Amity.InternalUser[];
                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.InternalUser[];
                hasNextPage?: boolean;
                onNextPage?: () => void;
            }[];
            pageParams: (() => void)[];
        }, Error>>;
        fetchStatus: import("@tanstack/query-core").FetchStatus;
        promise: Promise<{
            pages: {
                data: Amity.InternalUser[];
                hasNextPage?: boolean;
                onNextPage?: () => void;
            }[];
            pageParams: (() => void)[];
        }>;
    } | {
        searchUsers: Amity.InternalUser[];
        data: Amity.InternalUser[];
        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.InternalUser[];
                hasNextPage?: boolean;
                onNextPage?: () => void;
            }[];
            pageParams: (() => void)[];
        }, Error>>;
        fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
            pages: {
                data: Amity.InternalUser[];
                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.InternalUser[];
                hasNextPage?: boolean;
                onNextPage?: () => void;
            }[];
            pageParams: (() => void)[];
        }, Error>>;
        fetchStatus: import("@tanstack/query-core").FetchStatus;
        promise: Promise<{
            pages: {
                data: Amity.InternalUser[];
                hasNextPage?: boolean;
                onNextPage?: () => void;
            }[];
            pageParams: (() => void)[];
        }>;
    } | {
        searchUsers: Amity.InternalUser[];
        data: Amity.InternalUser[];
        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.InternalUser[];
                hasNextPage?: boolean;
                onNextPage?: () => void;
            }[];
            pageParams: (() => void)[];
        }, Error>>;
        fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<{
            pages: {
                data: Amity.InternalUser[];
                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.InternalUser[];
                hasNextPage?: boolean;
                onNextPage?: () => void;
            }[];
            pageParams: (() => void)[];
        }, Error>>;
        fetchStatus: import("@tanstack/query-core").FetchStatus;
        promise: Promise<{
            pages: {
                data: Amity.InternalUser[];
                hasNextPage?: boolean;
                onNextPage?: () => void;
            }[];
            pageParams: (() => void)[];
        }>;
    } | {
        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;
        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)[];
        }>;
    };
    onSubmit: () => void;
    values: {
        users: Amity.User[];
        search?: string;
    };
};
export default useAddMember;
//# sourceMappingURL=useAddMember.d.ts.map