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 SingleAudioSelectorStateEnum { isSelectInputType = 2, isDragging = 3, isRecording = 4, isPreviewing = 5, isError = 6 } export interface SingleAudioSelectorState extends LDLocalState { curStep: SingleAudioSelectorStateEnum; isMicAvailable: boolean; previewURL: string; } export declare let SingleAudioSelectorBpCfg: BlueprintConfig; export declare abstract class AbstractSingleAudioSelector extends Component implements IBlueprintItpt { static getDerivedStateFromProps(nextProps: LDConnectedState & LDConnectedDispatch & LDOwnProps, prevState: SingleAudioSelectorState): null | SingleAudioSelectorState; cfg: BlueprintConfig; ownKVLs: KVL[]; _isMounted: boolean; constructor(props: any); /** * called when the URL/blob of the audio URL changes, dispatches KV-Output */ onResultChanged(url: string): void; consumeLDOptions: (ldOptions: ILDOptions) => void; componentWillUnmount(): void; componentDidMount(): void; setStateToError(): void; startDrag(): void; onDropSuccess(audioFile: File, previewURL: string): void; onDropFailure(): void; startMic(): void; /** * revokes the previewURL and sets state.previewURL to null, it does not change state.curStep */ destroyPreview(): void; render(): ReactNode; }