import firebase from 'firebase/compat/app'; import IQueryOptions from '../Interfaces/Query/IProductQueryOptions'; export declare const BASE_IMGX_URL = "https://gng-ecr.imgix.net"; export declare const BASE_IMGX_URL_TEST = "https://gng-ecr-test.imgix.net"; export declare const firebaseConfig: (useDev?: boolean) => { apiKey: string | undefined; authDomain: string; databaseURL: string; projectId: string; storageBucket: string; messagingSenderId: string | undefined; appId: string | undefined; measurementId: string | undefined; local_firestore?: undefined; } | { apiKey: string | undefined; authDomain: string; databaseURL: string; projectId: string; storageBucket: string; messagingSenderId: string | undefined; appId: string | undefined; measurementId: string | undefined; local_firestore: boolean; }; export declare const constructFirebaseCallWithOptions: (currentFBCall: any, options: IQueryOptions) => any; /** * Upload string (base64) to firebase storage. * @param value - The string to upload * @param path - The path to which the file should be uploaded * @param name - The file name to use for upload * @param options.firebaseApp - Optionnal. Used instead of instanciating new app if provided. * @param options.generateFirebasePublicUrl - Optionnal. Returns public accessible url if true (generated with IMGIX prefix). * @param options.getRef - Optionnal. If props img_ref should be returned with img_path value. */ export declare const uploadStringToFbBucket: (value: string, path: string, name?: string, type?: string, options?: { firebaseApp?: firebase.app.App; generateFirebasePublicUrl?: boolean; getRef?: boolean; }) => Promise; /** * Upload File object to firebase storage. * @param file - The File object to upload * @param path - The path to which the file should be uploaded * @param fileName - The full file name to use for File. Only used if options.useFileName is set * @param options.useFileName - Optionnal, defaults to true. If filename should be saved as sub-file of path folder. * @param options.getRef - Optionnal. If props img_ref should be returned with img_path value */ export declare const uploadFileToFbBucket: (file: File, path: string, fileName: string, options?: { useFileName?: boolean; getRef?: boolean; }) => Promise;