/** * 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 FileField as FieldType, type PendingStoredFileValue, type StoredFileValue } from '@byline/core'; interface FileUploadFieldProps { field: FieldType; /** Collection path used to build the upload URL (e.g. `'media'`). */ collectionPath: string; /** Field path in the form (e.g. `'attachment'` or `'content.0.attachment'`). */ fieldPath: string; /** Called with the PendingStoredFileValue for immediate UI update. */ onUploaded: (value: StoredFileValue | PendingStoredFileValue) => void; /** Optional `accept` MIME-type / extension string for the native file input. */ accept?: string; } export declare const FileUploadField: ({ field: _field, collectionPath, fieldPath, onUploaded, accept, }: FileUploadFieldProps) => import("react").JSX.Element; export {};