import { type ExtractFieldInput, type ValidationResult } from "../../../chip-types/field.js"; import FileField, { FileStorage } from "./file.js"; import { ImageValue } from "./image-value.js"; import type Context from "../../../context.js"; /** Like {@link FileField}, but meant for images. Has the capacity to format images and serve thumbnails and different sizes. * * **Params**: * - `default_format` - string - one of the image formats defined in the app config. If not specified otherwise in the `format` parameter upon request, images will be served in the size corresponding to this format. */ export default class ImageField extends FileStorage, string> { typeName: string; default_format: string; isProperValue(context: Context, input: ExtractFieldInput): Promise; setParams(params: Partial[0] & { default_format: string; }>): void; decode(context: Context, db_value: string | null, __: unknown, is_http_api_request?: boolean): Promise; }