import IRemoteConfig from '../../types/IRemoteConfig.js';
import ConfigRepository from './ConfigRepository.js';
interface Config extends IRemoteConfig {
    lastFetchedAt?: number;
    /**
     * Fetch the configuration for the current user from the MagicBell server.
     */
    fetch: () => Promise<void>;
    _repository: ConfigRepository;
}
/**
 * Remote configuration store. It contains all settings stored in MagicBell
 * servers for this user.
 *
 * @example
 * const { fetch } = useConfig();
 * useEffect(() => fetch(), []);
 */
declare const useConfig: import("zustand").UseBoundStore<import("zustand").StoreApi<Config>>;
export default useConfig;
