import MissingPathCallback from "./MissingPathCallback"; /** * Clears the cache. * @returns {void} Nothing. */ export declare const clear: () => void; /** * Gets a value from the cache. * @param {string} key - The key to retrieve from the cache. * @returns {unknown} The value from the cache. */ export declare const get: (key: string) => unknown; /** * Checks if the cache has a value for the given key. * @param {string} key - The key to check in the cache. * @returns {boolean} True if the cache has a value for the key, otherwise false. * @example * cache.has(""); // false * cache.has("Key"); // false * cache.set("Key", "Value"); * cache.has("Key"); // true */ export declare const has: (key: string) => boolean; /** * Sets a value in the cache. * @param {string} key - The key to store the value under. * @param {unknown} value - The value to store in the cache. * @returns {void} Nothing. * @example * cache.set("Key", "Value"); * cache.get("Key"); // "Value" * cache.has("Key"); // true * cache.set("Key", "New Value"); * cache.get("Key"); // "New Value" */ export declare const set: (key: string, value: unknown) => void; /** * Gets a string from the cache. * @param {string} path - The path to retrieve from the cache. * @param {string} tag - The tag containing the path. * @param {MissingPathCallback} onMissingPath - A callback function to handle missing paths. * @returns {string} The value from the cache as a string. * @example * getString("Key", "default value"); // "default value" * set("Key", "Value"); * getString("Key", "default value"); // "Value" * set("Key", 42); * getString("Key", "default value"); // "42" * set("Key", undefined); * getString("Key", "default value"); // "default value" */ export declare const getString: (path: string, tag: string, onMissingPath: MissingPathCallback) => string;