/** * You.com credential resolution. * * Single source of truth for the You.com API key. `YDC_API_KEY` (the * You.com Data Center index credential) is preferred; `YOU_API_KEY` is * the documented fallback. Whitespace-only values are treated as * absent, matching the descriptor's `isConfigured` contract. * * Boundary rules (same as the Exa credentials module): * - May import the normalized-error contract only. * - Must NOT import transport, command presentation, or another * Provider's Adapter. * * Missing credentials are surfaced as {@link ConfigurationError} * (exit 3). */ /** Credential environment names, in resolution-preference order (#232 derivation pin). */ export declare const ENV_NAMES: readonly ["YDC_API_KEY", "YOU_API_KEY"]; /** * Resolve the You.com API key without throwing. Returns the trimmed key * from the first name holding a non-blank value, `undefined` when none * is present. */ export declare function getYouApiKey(env: NodeJS.ProcessEnv): string | undefined; /** * True when a non-blank You.com API key is configured. Metadata-only: * performs no transport construction and reads no other Provider's * credentials. */ export declare function isYouConfigured(env: NodeJS.ProcessEnv): boolean; /** * Resolve the You.com API key or throw {@link ConfigurationError} * (exit 3) when it is missing. Call this at every capability * invocation gate. */ export declare function requireYouApiKey(env: NodeJS.ProcessEnv): string; /** * Provider-owned credential fingerprint: lowercase SHA-256 hex of the * raw key. Never expose the raw key in cache filenames or logs. */ export declare function hashYouApiKey(key: string): string; //# sourceMappingURL=credentials.d.ts.map