/** * Spider.cloud credential resolution. * * Single source of truth for the Spider.cloud API key * (`SPIDER_API_KEY`, Bearer-authenticated against * `https://api.spider.cloud`). Whitespace-only values are treated as * absent, matching the descriptor's `isConfigured` contract. Unlike the * Firecrawl variant, this resolver returns the *trimmed* value so the * Bearer header never carries surrounding whitespace. * * Boundary rules (ARCHITECTURE.md ยง2): * - 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), distinct from {@link AuthError} (exit 1) which means the * Provider REJECTED a presented credential. */ /** Credential environment names read by this module (#232 derivation pin). */ export declare const ENV_NAMES: readonly ["SPIDER_API_KEY"]; /** * Resolve the Spider.cloud API key without throwing. Returns the * trimmed key, or `undefined` when no non-blank value is present. */ export declare function getSpiderApiKey(env: NodeJS.ProcessEnv): string | undefined; /** * Resolve the Spider.cloud API key or throw {@link ConfigurationError} * (exit 3) when it is missing. Call this at every capability * invocation gate. */ export declare function requireSpiderApiKey(env: NodeJS.ProcessEnv): string; //# sourceMappingURL=credentials.d.ts.map