import type { AgentConfig, AgentTool, ITelemetryService } from "@cline/shared"; import { z } from "zod"; declare const GlobalCompactionStrategySchema: z.ZodCatch>; export type GlobalCompactionStrategy = z.infer; export declare const GlobalSettingsSchema: z.ZodPipe>; autoUpdateEnabled: z.ZodCatch>; compactionStrategy: z.ZodOptional>>; disabledTools: z.ZodOptional>>, z.ZodTransform>>; disabledPlugins: z.ZodOptional>>, z.ZodTransform>>; }, z.core.$strip>, z.ZodTransform<{ telemetryOptOut: boolean; autoUpdateEnabled: boolean; compactionStrategy?: GlobalCompactionStrategy; disabledTools?: string[]; disabledPlugins?: string[]; }, { telemetryOptOut: boolean; autoUpdateEnabled: boolean; compactionStrategy?: "basic" | "agentic" | 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; 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 {};