/**
 * 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 { FlowModelContext } from '@nocobase/flow-engine';
type DateTimeDisplayProps = {
    dateOnly?: boolean;
    dateFormat?: string;
    format?: string;
    picker?: string;
    showTime?: boolean;
    timeFormat?: string;
};
type DateTimeCollectionField = {
    type?: string;
    interface?: string;
    getComponentProps?: () => DateTimeDisplayProps;
    targetCollection?: {
        getField?: (name?: string) => DateTimeCollectionField | undefined;
    };
};
type DateTimeModelContext = FlowModelContext & {
    collectionField?: DateTimeCollectionField;
};
type DateTimeModel = {
    props?: DateTimeDisplayProps & {
        titleField?: string;
    };
    context?: DateTimeModelContext;
    getStepParams?: (flowKey: string, stepKey: string) => DateTimeDisplayProps | undefined;
};
type ResolveDateTimeDisplayPropsOptions = {
    model?: DateTimeModel;
    collectionField?: DateTimeCollectionField;
    titleField?: string;
    currentProps?: DateTimeDisplayProps;
    params?: DateTimeDisplayProps;
    withDefaults?: boolean;
};
export declare const getDateTimeFormatCollectionField: (options: ResolveDateTimeDisplayPropsOptions) => DateTimeCollectionField;
export declare const isTimeCollectionField: (collectionField?: DateTimeCollectionField) => boolean;
export declare const isDateOnlyCollectionField: (collectionField?: DateTimeCollectionField) => boolean;
export declare const getSavedDateTimeFormatParams: (model?: DateTimeModel) => DateTimeDisplayProps;
export declare const resolveDateTimeDisplayProps: (options: ResolveDateTimeDisplayPropsOptions) => DateTimeDisplayProps;
export {};
