import type { AuthProfileStore } from "../agents/auth-profiles/types.js"; import type { KlawConfig } from "../config/types.klaw.js"; import type { PluginOrigin } from "../plugins/plugin-origin.types.js"; import type { PreparedSecretsRuntimeSnapshot, SecretsRuntimeRefreshContext } from "./runtime-state.js"; import type { RuntimeWebToolsMetadata } from "./runtime-web-tools.types.js"; export declare function mergeSecretsRuntimeEnv(env: NodeJS.ProcessEnv | Record | undefined): Record; export declare function collectCandidateAgentDirs(config: KlawConfig, env?: NodeJS.ProcessEnv | Record): string[]; export declare function resolveRefreshAgentDirs(config: KlawConfig, context: SecretsRuntimeRefreshContext): string[]; export declare function hasCandidateAuthProfileStoreSources(params: { config: KlawConfig; env: NodeJS.ProcessEnv | Record; agentDirs?: string[]; }): boolean; export declare function createEmptyRuntimeWebToolsMetadata(): RuntimeWebToolsMetadata; export declare function canUseSecretsRuntimeFastPath(params: { sourceConfig: KlawConfig; authStores: Array<{ agentDir: string; store: AuthProfileStore; }>; }): boolean; export declare function prepareSecretsRuntimeFastPathSnapshot(params: { config: KlawConfig; env?: NodeJS.ProcessEnv; agentDirs?: string[]; includeAuthStoreRefs?: boolean; loadAuthStore?: (agentDir?: string) => AuthProfileStore; loadablePluginOrigins?: ReadonlyMap; }): { snapshot: PreparedSecretsRuntimeSnapshot; refreshContext: SecretsRuntimeRefreshContext; usesAuthStoreFallback: boolean; } | null;