import { Component, ReactNode } from 'react'; import { LDConnectedDispatch, LDConnectedState, LDOwnProps, LDLocalState } from '../../../appstate/LDProps'; import { BlueprintConfig, IBlueprintItpt } from '../../../ldaccess/ldBlueprint'; import { KVL } from '../../../ldaccess/KVL'; import { ILDOptions } from '../../../ldaccess/ildoptions'; export declare enum SingleImageSelectorStateEnum { isSelectInputType = 2, isDragging = 3, isCamShooting = 4, isPreviewing = 5, isError = 6 } export interface SingleImageSelectorState extends LDLocalState { curStep: SingleImageSelectorStateEnum; isCamAvailable: boolean; previewURL: string; } export declare let SingleImageSelectorBpCfg: BlueprintConfig; export declare abstract class AbstractSingleImageSelector extends Component implements IBlueprintItpt { static getDerivedStateFromProps(nextProps: LDConnectedState & LDConnectedDispatch & LDOwnProps, prevState: SingleImageSelectorState): null | SingleImageSelectorState; cfg: BlueprintConfig; loadingImgLink: string; errorImgLink: string; draggingImgLink: string; ownKVLs: KVL[]; _isMounted: boolean; constructor(props: any); /** * called when the URL/blob of the image URL changes, dispatches KV-Output */ onResultChanged(url: string): void; consumeLDOptions: (ldOptions: ILDOptions) => void; componentWillUnmount(): void; componentDidMount(): void; setStateToError(): void; startDrag(): void; onDropSuccess(imgFile: File, previewURL: string): void; onDropFailure(): void; startCamera(): void; destroyPreview(): void; render(): ReactNode; }