export declare const uploadBlob: (blob: Blob) => Promise; /** * Uploads a url to the mobile local server and returns the final url to send to the host. * This is used together with @function useLocalServer to upload base64 or blob urls to mobile as local files, so then mobile can handle those resources as files instead of base64 or blob url. * If the url doesn't have a protocol, this means @param resourceUrl it's a file name that was passed by mobile to reference a local file and then it doesn't need to be uploaded, it would be a redundant file., and the same resource url is returned. * * @param resourceUrl * @returns Promise with upload url or @param resourceUrl if it can't be uploaded */ declare const uploadToLocalServer: (resourceUrl: string) => Promise; /** * Uploads a url to the mobile local server and returns the final url to send to the host. * This is used together with @function useLocalServer to upload base64 or blob urls to mobile as local files, so then mobile can handle those resources as files instead of base64 or blob url. * If the url doesn't have a protocol, this means @param resourceLocation it's a file name that was passed by mobile to reference a local file and then it doesn't need to be uploaded, it would be a redundant file., and the same resource url is returned. * * @param resourceLocation * @returns Promise with upload url or @param resourceLocation if it can't be uploaded */ export declare const uploadResourceToLocalServer: (resourceLocation: string) => Promise; export declare const hasProtocol: (url: string) => boolean; export default uploadToLocalServer;