/// <reference types="react" />
import { ViewController } from './ctr';
import './utils.css';
export interface QiniuUptoken {
    token: string;
    domain: string;
}
export declare function setConfig(uptoken: () => Promise<QiniuUptoken>, upload_url: string): void;
export declare function uploadFile(file: File, params?: Dict): Promise<unknown>;
export declare function uploadQiniu(file: File, params?: Dict): Promise<string>;
export interface UploadProps {
    onStartUpload?: (file: File) => void;
    onChange?: (src: string, raw: string) => void;
    onError?: (err: Error) => void;
    src?: string;
    value?: string;
    size?: number;
    class?: string;
    className?: string;
    noShow?: boolean;
    accept?: string;
}
export default class Upload extends ViewController<UploadProps, Dict> {
    state: {
        src: string;
    };
    private m_id;
    private m_handle_change;
    private m_onChange;
    private m_onStartUpload;
    private m_onError;
    get value(): string;
    triggerLoad(): void;
    render(): JSX.Element;
}
