Constructor function for initializing the cookie engine. If CookieWrap is not available, it falls back to the default export of CookieWrap.
Asynchronously removes a key or an array of keys from the cookie storage.
The key(s) to be removed from the cookie storage.
A promise that resolves once the key(s) have been removed.
Asynchronously retrieves the value associated with the given key from the cookie engine.
The key to look up in the cookie engine.
A promise that resolves to the value associated with the key, or null if the key is not found, or undefined if the value is not set.
Sets a default value for a given key in the cookies with the specified expiration period.
The key to set the default value for.
The default value to set for the key.
A promise that resolves when the default value is set in the cookies.
Asynchronously sets a long-lived value in the cookies with the given key and value.
The key to set in the cookies.
The value to associate with the key.
A promise that resolves when the value is successfully set in the cookies.
Asynchronously sets a cookie value with the given key, value, and time-to-live (TTL).
The key of the cookie.
The value to set for the cookie.
The time-to-live for the cookie in milliseconds.
A Promise that resolves to null once the cookie is set.
Class for managing local cookies using CookieWrap library.