Creates a new WaluConfig instance with the specified configuration options.
Configuration object containing all necessary settings
API URLs object or base URL string for version and update endpoints
OptionaldownloadStatusFunction?: (msg: string, progress: number) => Promise<void>Optional callback for download progress updates
RSA public key in PEM format for signature verification
OptionalstorageReadFunction?: () => Promise<ICacheData>Optional custom function to read storage data
OptionalstorageWriteFunction?: (data: ICacheData) => Promise<void>Optional custom function to write storage data
Path to the service worker script
Protected ReadonlyapiProtected ReadonlyconfigConfiguration object containing all necessary settings
Protected ReadonlydownloadProtected ReadonlypublicProtected ReadonlystorageProtected ReadonlystorageProtected ReadonlyworkerReports download status using the configured status function.
Status message to display
Progress value between 0 and 1
Gets the API URLs configuration.
The API URLs object containing version and update endpoints
Gets the RSA public key used for signature verification.
The public key in PEM format
Gets the path to the service worker script.
The worker path as a string
Reads storage data using the configured storage read function.
Promise resolving to the stored data or null if no data exists
Writes storage data using the configured storage write function.
The storage data to write
Promise that resolves when the data is written
Configuration class for WALU. Manages API URLs, storage functions, and cryptographic verification settings. Provides a centralized configuration interface for all WALU operations.