import type { ExtensionAPI } from "../sdk/coding-agent/index.js";
import type { McpConfig, ServerEntry } from "./types.js";
export declare function openUrl(ext: ExtensionAPI, url: string, browser?: string): Promise<void>;
export declare function openPath(ext: ExtensionAPI, targetPath: string): Promise<void>;
export declare function parallelLimit<T, R>(items: T[], limit: number, fn: (item: T) => Promise<R>): Promise<R[]>;
export declare function getConfigPathFromArgv(): string | undefined;
export declare function interpolateEnvVars(value: string): string;
export declare function interpolateEnvRecord(values: Record<string, string> | undefined): Record<string, string> | undefined;
export declare function resolveConfigPath(value: string | undefined): string | undefined;
export declare function resolveBearerToken(definition: Pick<ServerEntry, "bearerToken" | "bearerTokenEnv">): string | undefined;
export declare function truncateAtWord(text: string, target: number): string;
export declare function formatAuthRequiredMessage(config: Pick<McpConfig, "settings">, serverName: string, defaultMessage: string): string;
/**
 * Extract the adapter-owned UI stream mode from tool metadata.
 */
export declare function extractToolUiStreamMode(toolMeta: Record<string, unknown> | undefined): "eager" | "stream-first" | undefined;
//# sourceMappingURL=utils.d.ts.map