import { AssetFormField } from "../../api.js"; import { RequiredValidation } from "../utils.js"; export declare function image({ label, directory, validation, description, publicPath, transformFilename, }: { label: string; directory?: string; validation?: { isRequired?: IsRequired; }; description?: string; publicPath?: string; /** * This function will only be used when `fields.image` is used in a field like `fields.markdoc`/`fields.mdx`. * * When used outside of editor fields, this function will **not** be used. Instead only the extension of the uploaded file is used and the start of the filename is based on the field key. */ transformFilename?: (originalFilename: string) => string; } & RequiredValidation): AssetFormField<{ data: Uint8Array; extension: string; filename: string; } | null, { data: Uint8Array; extension: string; filename: string; } | (IsRequired extends true ? never : null), string | (IsRequired extends true ? never : null)>;