import { s } from "@garden-io/grow-sdk/schema"; import { ConfigStore } from "./base"; export declare const legacyGlobalConfigFilename = "global-config.yml"; export declare const globalConfigFilename = "global-config.json"; export declare const emptyGlobalConfig: GlobalConfig; declare const activeProcessSchema: import("zod").ZodObject<{ pid: import("zod").ZodNumber; startedAt: import("zod").ZodDate; arguments: import("zod").ZodArray; sessionId: import("zod").ZodNullable; growRoot: import("zod").ZodNullable; configPath: import("zod").ZodNullable; command: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { pid: number; startedAt: Date; arguments: string[]; sessionId: string | null; growRoot: string | null; configPath: string | null; command: string; }, { pid: number; startedAt: Date; arguments: string[]; sessionId: string | null; growRoot: string | null; configPath: string | null; command: string; }>; declare const clientAuthTokenSchema: import("zod").ZodObject<{ token: import("zod").ZodString; refreshToken: import("zod").ZodString; validity: import("zod").ZodDate; }, "strip", import("zod").ZodTypeAny, { token: string; refreshToken: string; validity: Date; }, { token: string; refreshToken: string; validity: Date; }>; declare const globalConfigSchema: import("zod").ZodObject<{ activeProcesses: import("zod").ZodRecord; sessionId: import("zod").ZodNullable; growRoot: import("zod").ZodNullable; configPath: import("zod").ZodNullable; command: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { pid: number; startedAt: Date; arguments: string[]; sessionId: string | null; growRoot: string | null; configPath: string | null; command: string; }, { pid: number; startedAt: Date; arguments: string[]; sessionId: string | null; growRoot: string | null; configPath: string | null; command: string; }>>; analytics: import("zod").ZodObject<{ firstRunAt: import("zod").ZodOptional; latestRunAt: import("zod").ZodOptional; anonymousUserId: import("zod").ZodOptional; userId: import("zod").ZodOptional; optedOut: import("zod").ZodOptional; cloudVersion: import("zod").ZodOptional; cloudProfileEnabled: import("zod").ZodOptional; }, "strip", import("zod").ZodTypeAny, { firstRunAt?: Date | undefined; latestRunAt?: Date | undefined; anonymousUserId?: string | undefined; userId?: string | undefined; optedOut?: boolean | undefined; cloudVersion?: string | undefined; cloudProfileEnabled?: boolean | undefined; }, { firstRunAt?: Date | undefined; latestRunAt?: Date | undefined; anonymousUserId?: string | undefined; userId?: string | undefined; optedOut?: boolean | undefined; cloudVersion?: string | undefined; cloudProfileEnabled?: boolean | undefined; }>; clientAuthTokens: import("zod").ZodRecord>; versionCheck: import("zod").ZodObject<{ lastRun: import("zod").ZodOptional; }, "strip", import("zod").ZodTypeAny, { lastRun?: Date | undefined; }, { lastRun?: Date | undefined; }>; requirementsCheck: import("zod").ZodObject<{ lastRunDateUNIX: import("zod").ZodOptional; lastRunGardenVersion: import("zod").ZodOptional; passed: import("zod").ZodOptional; }, "strip", import("zod").ZodTypeAny, { lastRunDateUNIX?: number | undefined; lastRunGardenVersion?: string | undefined; passed?: boolean | undefined; }, { lastRunDateUNIX?: number | undefined; lastRunGardenVersion?: string | undefined; passed?: boolean | undefined; }>; }, "strip", import("zod").ZodTypeAny, { activeProcesses: Record; analytics: { firstRunAt?: Date | undefined; latestRunAt?: Date | undefined; anonymousUserId?: string | undefined; userId?: string | undefined; optedOut?: boolean | undefined; cloudVersion?: string | undefined; cloudProfileEnabled?: boolean | undefined; }; clientAuthTokens: Record; versionCheck: { lastRun?: Date | undefined; }; requirementsCheck: { lastRunDateUNIX?: number | undefined; lastRunGardenVersion?: string | undefined; passed?: boolean | undefined; }; }, { activeProcesses: Record; analytics: { firstRunAt?: Date | undefined; latestRunAt?: Date | undefined; anonymousUserId?: string | undefined; userId?: string | undefined; optedOut?: boolean | undefined; cloudVersion?: string | undefined; cloudProfileEnabled?: boolean | undefined; }; clientAuthTokens: Record; versionCheck: { lastRun?: Date | undefined; }; requirementsCheck: { lastRunDateUNIX?: number | undefined; lastRunGardenVersion?: string | undefined; passed?: boolean | undefined; }; }>; export type ClientAuthToken = s.infer; export type GlobalConfig = s.infer; export type AnalyticsGlobalConfig = GlobalConfig["analytics"]; export type GrowProcess = s.infer; export declare class GlobalConfigStore extends ConfigStore { private configDir; fileMode: number; schema: import("zod").ZodObject<{ activeProcesses: import("zod").ZodRecord; sessionId: import("zod").ZodNullable; growRoot: import("zod").ZodNullable; configPath: import("zod").ZodNullable; command: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { pid: number; startedAt: Date; arguments: string[]; sessionId: string | null; growRoot: string | null; configPath: string | null; command: string; }, { pid: number; startedAt: Date; arguments: string[]; sessionId: string | null; growRoot: string | null; configPath: string | null; command: string; }>>; analytics: import("zod").ZodObject<{ firstRunAt: import("zod").ZodOptional; latestRunAt: import("zod").ZodOptional; anonymousUserId: import("zod").ZodOptional; userId: import("zod").ZodOptional; optedOut: import("zod").ZodOptional; cloudVersion: import("zod").ZodOptional; cloudProfileEnabled: import("zod").ZodOptional; }, "strip", import("zod").ZodTypeAny, { firstRunAt?: Date | undefined; latestRunAt?: Date | undefined; anonymousUserId?: string | undefined; userId?: string | undefined; optedOut?: boolean | undefined; cloudVersion?: string | undefined; cloudProfileEnabled?: boolean | undefined; }, { firstRunAt?: Date | undefined; latestRunAt?: Date | undefined; anonymousUserId?: string | undefined; userId?: string | undefined; optedOut?: boolean | undefined; cloudVersion?: string | undefined; cloudProfileEnabled?: boolean | undefined; }>; clientAuthTokens: import("zod").ZodRecord>; versionCheck: import("zod").ZodObject<{ lastRun: import("zod").ZodOptional; }, "strip", import("zod").ZodTypeAny, { lastRun?: Date | undefined; }, { lastRun?: Date | undefined; }>; requirementsCheck: import("zod").ZodObject<{ lastRunDateUNIX: import("zod").ZodOptional; lastRunGardenVersion: import("zod").ZodOptional; passed: import("zod").ZodOptional; }, "strip", import("zod").ZodTypeAny, { lastRunDateUNIX?: number | undefined; lastRunGardenVersion?: string | undefined; passed?: boolean | undefined; }, { lastRunDateUNIX?: number | undefined; lastRunGardenVersion?: string | undefined; passed?: boolean | undefined; }>; }, "strip", import("zod").ZodTypeAny, { activeProcesses: Record; analytics: { firstRunAt?: Date | undefined; latestRunAt?: Date | undefined; anonymousUserId?: string | undefined; userId?: string | undefined; optedOut?: boolean | undefined; cloudVersion?: string | undefined; cloudProfileEnabled?: boolean | undefined; }; clientAuthTokens: Record; versionCheck: { lastRun?: Date | undefined; }; requirementsCheck: { lastRunDateUNIX?: number | undefined; lastRunGardenVersion?: string | undefined; passed?: boolean | undefined; }; }, { activeProcesses: Record; analytics: { firstRunAt?: Date | undefined; latestRunAt?: Date | undefined; anonymousUserId?: string | undefined; userId?: string | undefined; optedOut?: boolean | undefined; cloudVersion?: string | undefined; cloudProfileEnabled?: boolean | undefined; }; clientAuthTokens: Record; versionCheck: { lastRun?: Date | undefined; }; requirementsCheck: { lastRunDateUNIX?: number | undefined; lastRunGardenVersion?: string | undefined; passed?: boolean | undefined; }; }>; constructor(configDir?: string); getConfigPath(): string; protected initConfig(migrate: boolean): Promise<{ activeProcesses: Record; analytics: { firstRunAt?: Date | undefined; latestRunAt?: Date | undefined; anonymousUserId?: string | undefined; userId?: string | undefined; optedOut?: boolean | undefined; cloudVersion?: string | undefined; cloudProfileEnabled?: boolean | undefined; }; clientAuthTokens: Record; versionCheck: { lastRun?: Date | undefined; }; requirementsCheck: { lastRunDateUNIX?: number | undefined; lastRunGardenVersion?: string | undefined; passed?: boolean | undefined; }; }>; } export {};