///
import * as React from "react";
import { TPluginActionProps } from "./../plugin";
import { TMedia } from "./type";
export interface MediaActionProps extends TPluginActionProps {
type: TMedia;
className?: string;
rcUploadProps?: any;
rcSuccess?: (data: any) => string | Promise;
}
export interface MediaActionState {
showURLInput: boolean;
}
export declare const mediaIcons: {
LINK: string;
IMAGE: string;
VIDEO: string;
AUDIO: string;
};
/**
* 行为
* 图片: 选择图片上传 必须配置上传文件服务器参数
* 视频/音频贴链接就好
*/
export declare class MediaAction extends React.Component {
input: HTMLInputElement | null;
inputValue: string;
documentCancelFunc: (e: any) => void;
constructor(props: MediaActionProps);
modalShow: (showURLInput?: boolean) => void;
initClickEvents(): void;
componentWillUnmount(): void;
onChange: (obj: any) => void;
setData: () => void;
confirmMedia: () => void;
_onURLInputKeyDown: (e: React.KeyboardEvent) => void;
setUrl: (url: string) => void;
renderUpload(): JSX.Element;
render(): JSX.Element;
}