UNPKG

@lexmin0412/gcm

Version:
23 lines (22 loc) 836 B
import { UserConfig } from './../types'; export * from './fs'; export declare const rootPath: string; export declare const configJsonPath: string; export declare const createEmptyJsonWhenNeeds: () => void; export declare const getPkgJson: () => any; export declare const getCurrentConfig: () => { name: string; email: string; } | null; export declare const addConfig: (config: UserConfig) => void; export declare const removeConfig: (alias: string) => void; export declare const isConfigJsonExists: () => boolean; export declare const readConfigs: () => { users: UserConfig[]; }; export declare const getAllUserConfigs: () => UserConfig[]; export declare const getConfigByAlias: (alias: string) => UserConfig | null; export declare const getProjectConfig: (projectPath?: string) => { name: string; email: string; };