import Conf from 'conf';
import type { Store, User } from '../types/index.js';
export declare const env: Conf<Record<string, string | undefined>>;
export declare function setEnv(name: string, reviewBranch?: string): Record<string, string | undefined>;
declare function ensureLoggedIn(storeId: string): string;
declare function get(key: string): any;
declare function getAll(): any;
declare function getDefaultStore(): string;
declare function setDefaultStore(storeId: string): void;
declare function getDefaultStorefront(appPath: string): {
    env?: string;
    id: string;
};
declare function setDefaultStorefront(appPath: string, storefrontId: string, env?: string): void;
declare function getSessionId(storeId: string): string | undefined;
/**
 * Set store data for later access.
 *
 * It replaces the previous store value if it exists and only stores the
 * following attributes:
 *
 *  - sessionId
 *  - storeId
 *  - name
 *
 * @param store - The store to set
 * @returns {void}
 */
declare function setStore(store: Store): void;
declare function getUser(): User;
declare function setUser(user: User): void;
declare function clear(): void;
declare const config: {
    clear: typeof clear;
    ensureLoggedIn: typeof ensureLoggedIn;
    get: typeof get;
    getAll: typeof getAll;
    getDefaultStore: typeof getDefaultStore;
    getDefaultStorefront: typeof getDefaultStorefront;
    getSessionId: typeof getSessionId;
    getUser: typeof getUser;
    setDefaultStore: typeof setDefaultStore;
    setDefaultStorefront: typeof setDefaultStorefront;
    setStore: typeof setStore;
    setUser: typeof setUser;
};
export default config;
