/**
 * This file is part of the NocoBase (R) project.
 * Copyright (c) 2020-2024 NocoBase Co., Ltd.
 * Authors: NocoBase Team.
 *
 * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
 * For more information, please refer to: https://www.nocobase.com/agreement.
 */
import type { Dayjs } from 'dayjs';
type DateLimitProps = {
    _minDate?: unknown;
    _maxDate?: unknown;
    currentForm?: unknown;
};
type DisabledTimeConfig = {
    disabledHours: () => number[];
    disabledMinutes: (selectedHour: number) => number[];
    disabledSeconds: (selectedHour: number, selectedMinute: number) => number[];
};
type DisabledDate = (current: Dayjs) => boolean;
type DisabledTime = (current: Dayjs | null) => DisabledTimeConfig;
export declare function useDateLimit(props: DateLimitProps): {
    minDate: Dayjs;
    maxDate: Dayjs;
    disabledDate: DisabledDate;
    disabledTime: DisabledTime;
};
export {};
