import { DatasourceAction } from "../action.js";

//#region src/core/file-upload.d.ts

/**
 * The shape of a single uploaded file as it is stored in a record field.
 * Pre-load existing attachments from the record into this shape for edit forms.
 */
type FileAttachment = {
  url: string;
  filename: string;
  id: string;
  type?: string | null;
};
declare function upload(action: DatasourceAction, file: File): Promise<FileAttachment>;
//#endregion
export { FileAttachment, upload };