/** * This Source Code is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) Infonomic Company Limited */ import { type ImageField as FieldType, type PendingStoredFileValue, type StoredFileValue } from '@byline/core'; interface ImageUploadFieldProps { field: FieldType; /** Collection path used to build the upload URL (e.g. `'media'`). */ collectionPath: string; /** Field path in the form (e.g. `'image'` or `'content.0.image'`). */ fieldPath: string; /** Called with the PendingStoredFileValue for immediate preview. */ onUploaded: (value: StoredFileValue | PendingStoredFileValue) => void; /** Optional accepted-file MIME types string for the native file input. */ accept?: string; } export declare const ImageUploadField: ({ field: _field, collectionPath, fieldPath, onUploaded, accept, }: ImageUploadFieldProps) => import("react").JSX.Element; export {};