import type { AdapterFactory, AdapterSelection } from './types.js'; interface DshVersionOptions { profileDir?: string; dshPkgPath?: string; env?: typeof process.env; } export declare class UnsupportedDshVersionError extends Error { kind?: string; version?: string; minSupported?: string | null; constructor(message: string, opts?: { kind?: string; version?: string; minSupported?: string | null; }); } export declare class InvalidVersionError extends Error { version?: string; constructor(message: string, opts?: { version?: string; }); } /** * Resolve the installed dsh version. * * @returns semver version string, or undefined when unreachable */ export declare function detectDshVersion(opts?: DshVersionOptions): string | undefined; export declare class AdapterRegistry { adapters: AdapterFactory[]; constructor(); register(factory: AdapterFactory): this; select(version: string): AdapterSelection; } export {};