"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.launchImageLibrary = exports.launchCamera = void 0;
const react_native_1 = require("react-native");
const DEFAULT_OPTIONS = {
    mediaType: 'photo',
    videoQuality: 'high',
    quality: 1,
    maxWidth: 0,
    maxHeight: 0,
    includeBase64: false,
    saveToPhotos: false,
    durationLimit: 0,
    cameraType: 'back',
};
function launchCamera(options, callback) {
    if (typeof callback !== 'function') {
        console.error('Send proper callback function, check API');
        return;
    }
    react_native_1.NativeModules.DyteImagePickerManager.launchCamera(Object.assign(Object.assign({}, DEFAULT_OPTIONS), options), callback);
}
exports.launchCamera = launchCamera;
function launchImageLibrary(options, callback) {
    if (typeof callback !== 'function') {
        console.error('Send proper callback function, check API');
        return;
    }
    react_native_1.NativeModules.DyteImagePickerManager.launchImageLibrary(Object.assign(Object.assign({}, DEFAULT_OPTIONS), options), callback);
}
exports.launchImageLibrary = launchImageLibrary;
//# sourceMappingURL=ImagePicker.js.map