/** * Test Environment Configuration * * This module provides test-specific environment variable access. * Test code should ONLY use these functions to access GitHub credentials, * NEVER the production credentials from env.ts * * Safety Rules: * - Tests ONLY use GITHUB_TEST_* variables * - Tests NEVER fall back to production GITHUB_* variables * - Tests skip gracefully if test credentials are not configured * * Usage: * ```typescript * import { getTestGitHubToken, hasTestCredentials } from './config/test-env'; * * if (!hasTestCredentials()) { * console.log('⏭️ Skipping test - GITHUB_TEST_TOKEN not set'); * return; * } * * const token = getTestGitHubToken(); * ``` */ /** * Get GitHub token for tests * * IMPORTANT: This function ONLY returns GITHUB_TEST_TOKEN and NEVER falls * back to the production GITHUB_TOKEN. This prevents tests from accidentally * using production credentials. * * @returns {string} Test GitHub token * @throws {Error} If GITHUB_TEST_TOKEN is not set */ export declare function getTestGitHubToken(): string; /** * Get GitHub username for tests * * @returns {string | undefined} Test GitHub username */ export declare function getTestGitHubUsername(): string | undefined; /** * Get GitHub repository for tests * * @returns {string | undefined} Test GitHub repository (format: username/repo) */ export declare function getTestGitHubRepository(): string | undefined; /** * Check if test credentials are configured * * Use this to conditionally run tests that require GitHub access: * * ```typescript * if (!hasTestCredentials()) { * console.log('⏭️ Skipping GitHub test - credentials not configured'); * return; * } * ``` * * @returns {boolean} True if GITHUB_TEST_TOKEN is set */ export declare function hasTestCredentials(): boolean; /** * Get skip message for tests * * Returns a consistent message for tests that are skipped due to missing credentials. * * @returns {string} Skip message with setup instructions */ export declare function getTestSkipMessage(): string; /** * Assert test credentials are configured (for use in test setup) * * Call this in beforeAll() to ensure tests have required credentials. * Tests will fail with clear error message if credentials are missing. * * @throws {Error} If test credentials are not configured */ export declare function assertTestCredentials(): void; //# sourceMappingURL=test-env.d.ts.map