import type { CALENDARS } from '../../../constants/index.ts';
import { ERROR_STATUS, SUCCESS_STATUS } from '../../../constants/index.ts';
import type { ApiErrorResponse } from '../../../types/index.ts';
export interface UseCheckProps {
    onCheckError?: OnCheckErrorType;
    onCheckSuccess?: () => void;
    initialData?: {
        status: typeof SUCCESS_STATUS | typeof ERROR_STATUS;
        data: {
            allowConnect: boolean;
            checked: boolean;
        };
    };
}
export type OnCheckErrorType = (err: ApiErrorResponse) => void;
export declare const getQueryKey: (calendar: (typeof CALENDARS)[number]) => string[];
export declare const useCheck: ({ onCheckError, initialData, onCheckSuccess }: UseCheckProps) => {
    allowConnect: boolean;
    checked: boolean;
    refetch: () => void;
};
export declare const useTeamCheck: ({ teamId, onCheckError, initialData, onCheckSuccess, }: UseCheckProps & {
    teamId?: number | null;
}) => {
    allowConnect: boolean;
    checked: boolean;
    refetch: () => void;
};
//# sourceMappingURL=useCheck.d.ts.map