import type { AgentConfig, AgentTool, ITelemetryService } from "@cline/shared"; import { z } from "zod"; declare const GlobalCompactionStrategySchema: z.ZodCatch>; export type GlobalCompactionStrategy = z.infer; /** Compaction strategy plus the "off" state surfaced by the CLI settings UI. */ export type GlobalCompactionMode = GlobalCompactionStrategy | "off"; declare const GlobalPlanActModeSchema: z.ZodEnum<{ plan: "plan"; act: "act"; }>; export type GlobalPlanActMode = z.infer; export declare const GlobalSettingsSchema: z.ZodPipe>; autoUpdateEnabled: z.ZodCatch>; compactionStrategy: z.ZodOptional>>; compactionEnabled: z.ZodCatch>; planActMode: z.ZodCatch>>; toolAutoApprove: z.ZodCatch>; tuiTheme: z.ZodCatch>; disabledTools: z.ZodOptional>>, z.ZodTransform>>; disabledPlugins: z.ZodOptional>>, z.ZodTransform>>; }, z.core.$strip>, z.ZodTransform<{ telemetryOptOut: boolean; autoUpdateEnabled: boolean; compactionStrategy?: GlobalCompactionStrategy; compactionEnabled?: boolean; planActMode?: GlobalPlanActMode; toolAutoApprove?: boolean; tuiTheme?: string; disabledTools?: string[]; disabledPlugins?: string[]; }, { telemetryOptOut: boolean; autoUpdateEnabled: boolean; compactionStrategy?: "basic" | "agentic" | undefined; compactionEnabled?: boolean | undefined; planActMode?: "plan" | "act" | undefined; toolAutoApprove?: boolean | undefined; tuiTheme?: string | undefined; disabledTools?: string[] | undefined; disabledPlugins?: string[] | undefined; }>>; export type GlobalSettings = z.infer; export interface WriteGlobalSettingsOptions { telemetry?: ITelemetryService; } export declare function readGlobalSettings(): GlobalSettings; export declare function writeGlobalSettings(settings: z.input, options?: WriteGlobalSettingsOptions): void; export declare function isTelemetryOptedOutGlobally(): boolean; export declare function setTelemetryOptOutGlobally(telemetryOptOut: boolean, options?: WriteGlobalSettingsOptions): void; export declare function isAutoUpdateEnabledGlobally(): boolean; export declare function setAutoUpdateEnabledGlobally(autoUpdateEnabled: boolean, options?: WriteGlobalSettingsOptions): void; export declare function readCompactionStrategyGlobally(): GlobalCompactionStrategy; export declare function setCompactionStrategyGlobally(compactionStrategy: GlobalCompactionStrategy): void; /** * Returns the persisted compaction mode including the disabled state, or * undefined when the user never chose one (callers apply their own default). */ export declare function readCompactionModeGlobally(): GlobalCompactionMode | undefined; /** * Persists the full compaction mode. Selecting "off" keeps the previously * chosen strategy so re-enabling compaction restores it. */ export declare function setCompactionModeGlobally(mode: GlobalCompactionMode): void; export declare function readPlanActModeGlobally(): GlobalPlanActMode | undefined; export declare function setPlanActModeGlobally(planActMode: GlobalPlanActMode): void; export declare function readToolAutoApproveGlobally(): boolean | undefined; /** * Returns the persisted TUI theme id, or undefined when the user never chose * one (callers apply their own default, typically terminal auto-detection). */ export declare function readTuiThemeGlobally(): string | undefined; export declare function setTuiThemeGlobally(tuiTheme: string): void; export declare function setToolAutoApproveGlobally(toolAutoApprove: boolean): void; export declare function resolveDisabledToolNames(disabledToolNames?: ReadonlyArray): Set; export declare function resolveDisabledPluginPaths(disabledPluginPaths?: ReadonlyArray): Set; export declare function isToolDisabledGlobally(toolName: string): boolean; export declare function toggleDisabledTool(toolName: string): boolean; export declare function setDisabledTools(toolNames: ReadonlyArray, disabledValue: boolean): void; export declare function setToolDisabledGlobally(toolName: string, disabled: boolean): boolean; export declare function isPluginDisabledGlobally(pluginPath: string): boolean; export declare function setDisabledPlugin(pluginPath: string, disabledValue: boolean): void; export declare function filterDisabledPluginPaths(pluginPaths: ReadonlyArray, disabledPluginPaths?: ReadonlyArray): string[]; export declare function filterDisabledTools>(tools: ReadonlyArray, disabledToolNames?: ReadonlyArray): T[]; export declare function filterExtensionToolRegistrations(extensions: AgentConfig["extensions"], disabledToolNames?: ReadonlyArray): AgentConfig["extensions"]; export {};