import { FileComponentProps } from "../components/FileComponent"; import { BPComponentProps, UiConfigRendererContextType } from "./BPComponent"; import { BPValueComponent, BPValueComponentState } from "./BPValueComponent"; type StateValue = string | File | null; type FileImportType = any; export type BPFileComponentState = BPValueComponentState & { mode: 'url' | 'file' | 'asset'; preview?: string; }; type BPFileComponentProps = { fileLoader?: { load: (v: string | File | { path: string; file: File | Blob; }) => Promise; }; AssetPicker?: FileComponentProps['AssetPicker']; }; type BPFileComponentContextType = UiConfigRendererContextType & BPFileComponentProps; export declare class BPFileComponent extends BPValueComponent, TSV | StateValue> { context: BPFileComponentContextType; props: BPComponentProps & BPFileComponentProps & TP; constructor(props: BPComponentProps & BPFileComponentProps & TP, context: BPFileComponentContextType); convertValueToState(_val: T | null, _state: BPFileComponentState): BPFileComponentState; convertStateToValue(state: BPFileComponentState): Promise; renderPreviewSlot(): import("react/jsx-runtime").JSX.Element; protected flexBasis: string; render(): import("react/jsx-runtime").JSX.Element | null; } export {};