/** * @file GitHub Actions environment variable getters. Provides access to GitHub * Actions CI/CD environment variables. */ /** * GH_TOKEN environment variable. Alternative GitHub authentication token for * API access (used by GitHub CLI). * * @example * ;```typescript * import { getGhToken } from '@socketsecurity/lib/env/github' * * const token = getGhToken() * // e.g. 'gho_abc123...' or undefined * ``` * * @returns The GH CLI token, or `undefined` if not set */ export declare function getGhToken(): string | undefined; /** * GITHUB_API_URL environment variable. GitHub API URL (e.g., * https://api.github.com). * * @example * ;```typescript * import { getGithubApiUrl } from '@socketsecurity/lib/env/github' * * const apiUrl = getGithubApiUrl() * // e.g. 'https://api.github.com' or undefined * ``` * * @returns The GitHub API URL, or `undefined` if not set */ export declare function getGithubApiUrl(): string | undefined; /** * GITHUB_BASE_REF environment variable. GitHub pull request base branch. * * @example * ;```typescript * import { getGithubBaseRef } from '@socketsecurity/lib/env/github' * * const baseRef = getGithubBaseRef() * // e.g. 'main' or undefined * ``` * * @returns The pull request base branch name, or `undefined` if not set */ export declare function getGithubBaseRef(): string | undefined; /** * GITHUB_REF_NAME environment variable. GitHub branch or tag name. * * @example * ;```typescript * import { getGithubRefName } from '@socketsecurity/lib/env/github' * * const refName = getGithubRefName() * // e.g. 'feature/my-branch' or 'v1.0.0' * ``` * * @returns The branch or tag name, or `undefined` if not set */ export declare function getGithubRefName(): string | undefined; /** * GITHUB_REF_TYPE environment variable. GitHub ref type: branch or tag. * * @example * ;```typescript * import { getGithubRefType } from '@socketsecurity/lib/env/github' * * const refType = getGithubRefType() * // e.g. 'branch' or 'tag' * ``` * * @returns The ref type ('branch' or 'tag'), or `undefined` if not set */ export declare function getGithubRefType(): string | undefined; /** * GITHUB_REPOSITORY environment variable. GitHub repository name in owner/repo * format. * * @example * ;```typescript * import { getGithubRepository } from '@socketsecurity/lib/env/github' * * const repo = getGithubRepository() * // e.g. 'SocketDev/socket-cli' or undefined * ``` * * @returns The repository name, or `undefined` if not set */ export declare function getGithubRepository(): string | undefined; /** * GITHUB_SERVER_URL environment variable. GitHub server URL (e.g., * https://github.com). * * @example * ;```typescript * import { getGithubServerUrl } from '@socketsecurity/lib/env/github' * * const serverUrl = getGithubServerUrl() * // e.g. 'https://github.com' or undefined * ``` * * @returns The GitHub server URL, or `undefined` if not set */ export declare function getGithubServerUrl(): string | undefined; /** * GITHUB_TOKEN environment variable. GitHub authentication token for API * access. * * @example * ;```typescript * import { getGithubToken } from '@socketsecurity/lib/env/github' * * const token = getGithubToken() * // e.g. 'ghp_abc123...' or undefined * ``` * * @returns The GitHub token, or `undefined` if not set */ export declare function getGithubToken(): string | undefined;