import * as PiCodingAgent from "@earendil-works/pi-coding-agent";
import type { AuthStorage as PiAuthStorage, ModelRegistry as PiModelRegistry } from "@earendil-works/pi-coding-agent";
import { type PiCredentialMap } from "./pi-auth-credentials.js";
declare const PiAuthStorageClass: typeof PiCodingAgent.AuthStorage;
declare const PiModelRegistryClass: typeof PiCodingAgent.ModelRegistry;
export { PiAuthStorageClass as AuthStorage, PiModelRegistryClass as ModelRegistry };
export declare function normalizeDiscoveredPiModel<T>(value: T, agentDir: string): T;
export declare function scrubLegacyStaticAuthJsonEntriesForDiscovery(pathname: string): void;
export declare function addEnvBackedPiCredentials(credentials: PiCredentialMap, env?: NodeJS.ProcessEnv): PiCredentialMap;
export declare function resolvePiCredentialsForDiscovery(agentDir: string): PiCredentialMap;
export declare function discoverAuthStorage(agentDir: string): PiAuthStorage;
export declare function discoverModels(authStorage: PiAuthStorage, agentDir: string): PiModelRegistry;
