export declare const useLeaveCommunity: ({ onSuccess, onError, }?: {
    onSuccess?: () => void;
    onError?: (error: Error) => void;
}) => {
    leaveCommunity: (communityId: string) => Promise<void>;
    isPending: boolean;
};
//# sourceMappingURL=useLeaveCommunity.d.ts.map