import { CmsFieldEditorGroupModifier } from "@webiny/app-headless-cms/presentation/fieldEditor/abstractions.js"; import type { ICmsFieldEditorFormBuilder, ICmsFieldEditorContext } from "@webiny/app-headless-cms/presentation/fieldEditor/abstractions.js"; import type { CmsModelField } from "@webiny/app-headless-cms-common/types/index.js"; /** * Adds Asset-specific options to the field settings form in the content-model * editor: an "Images only" toggle (parity with the File field) and an optional * "Accepted file types" list. Both are honored by the asset picker renderers * (`settings.imagesOnly` / `settings.accept`). * * Applies to the Asset field, which the editor resolves to the `"asset"` field * type via `matches()` even though it is stored as an `object`. */ declare class AssetFieldSettingsModifierImpl implements CmsFieldEditorGroupModifier.Interface { group: string; shouldApply(context: ICmsFieldEditorContext): boolean; modifyForm(form: ICmsFieldEditorFormBuilder): void; mapToForm(field: CmsModelField): { imagesOnly: boolean; accept: any; }; mapFromForm(formData: Record, field: CmsModelField): void; } export declare const AssetFieldSettingsModifier: typeof AssetFieldSettingsModifierImpl & { __abstraction: import("@webiny/di").Abstraction; }; export {};