export type CodeUpdaterEvent = { onProgress: { progress: number; }; }; export declare const addListener: (eventName: T, listener: (event: CodeUpdaterEvent[T]) => void) => () => void; /** * Downloads files from given URLs. * * @param {string} bundleId - identifier for the bundle id. * @param {string | null} zipUrl - zip file URL. If null, it means rolling back to the built-in bundle * @returns {Promise} Resolves with true if download was successful, otherwise rejects with an error. */ export declare const updateBundle: (bundleId: string, zipUrl: string | null) => Promise; /** * Fetches the current app version. */ export declare const getAppVersion: () => Promise; /** * Reloads the app. */ export declare const reload: () => void; /** * Fetches the current bundle version id. * * @async * @returns {Promise} Resolves with the current version id or null if not available. */ export declare const getBundleId: () => string;