import * as React from "react"; import { ArrayProperty, EntityValues, StringProperty } from "../../../../../models"; import { PreviewSize } from "../../../../../preview"; export declare const useStyles: (props: { hasValue: boolean; }) => import("@mui/styles").ClassNameMap; /** * Field that allows to upload files to Google Cloud Storage. * * This is one of the internal components that get mapped natively inside forms * and tables to the specified properties. * @category Form fields */ export declare function TableStorageUpload(props: { name: string; error: Error | undefined; disabled: boolean; internalValue: string | string[] | null; updateValue: (newValue: (string | string[] | null)) => void; focused: boolean; property: StringProperty | ArrayProperty; entityId: string; previewSize: PreviewSize; entityValues: EntityValues; onBlur?: React.FocusEventHandler; setPreventOutsideClick: (value: any) => void; }): import("@emotion/react/jsx-runtime").JSX.Element; /** * Internal representation of an item in the storage * It can have two states, having a storagePathOrDownloadUrl set, * which means the file has * been uploaded and it is rendered as a preview * Or have a pending file being uploaded. */ interface StorageFieldItem { id: number; storagePathOrDownloadUrl?: string; file?: File; fileName?: string; metadata?: any; } interface StorageUploadItemProps { storagePath: string; metadata?: any; entry: StorageFieldItem; onFileUploadComplete: (value: string, entry: StorageFieldItem, metadata?: any) => Promise; size: PreviewSize; } export declare function StorageUploadProgress({ storagePath, entry, metadata, onFileUploadComplete, size }: StorageUploadItemProps): import("@emotion/react/jsx-runtime").JSX.Element; interface StorageItemPreviewProps { property: StringProperty; value: string; onClear: (value: string) => void; size: PreviewSize; disabled: boolean; } export declare function StorageItemPreview({ property, value, size }: StorageItemPreviewProps): import("@emotion/react/jsx-runtime").JSX.Element; export {};