export interface CameraRule {
    takePhoto?: boolean;
    upload?: boolean;
}
export interface Options {
    mode?: 'camera' | 'photo' | 'both';
}
export default function generate(rules?: CameraRule[]): {
    /**
     * http://h5.alibaba-inc.com/api/WindVane-API.html#%E7%9B%B8%E6%9C%BA-WVCamera
     */
    takePhoto: (options?: Options) => Promise<string>;
};
