import type { App } from "./app.js";
import type { Collection } from "./collection_model.js";
import { DateTime } from "../tools/types/index.js";
import { type Field, type RecordInterceptor, type RecordLike, type SetterFinder, type SetterFunc } from "./field.js";
export declare const FieldTypeAutodate = "autodate";
export declare class AutodateField implements Field, SetterFinder, RecordInterceptor {
    Name: string;
    Id: string;
    System: boolean;
    Hidden: boolean;
    Presentable: boolean;
    OnCreate: boolean;
    OnUpdate: boolean;
    Type(): string;
    GetId(): string;
    SetId(id: string): void;
    GetName(): string;
    SetName(name: string): void;
    GetSystem(): boolean;
    SetSystem(system: boolean): void;
    GetHidden(): boolean;
    SetHidden(hidden: boolean): void;
    ColumnType(_app: App): string;
    PrepareValue(_record: unknown, raw: unknown): DateTime;
    ValidateValue(_ctx: unknown, _app: App, _record: RecordLike): Error | null;
    ValidateSettings(_ctx: unknown, app: App, collection: Collection): Error | null;
    FindSetter(key: string): SetterFunc | null;
    CanInterceptAction(actionName: string): boolean;
    Intercept(_ctx: unknown, _app: App, record: RecordLike, actionName: string, actionFunc: () => Error | null | Promise<Error | null>): Error | null | Promise<Error | null>;
    private finishIntercept;
    private getLastKnownValue;
    private getCurrentValue;
    private asDateTime;
}
