/**
 * Shared environment variable building utilities for Night Watch CLI commands.
 * Extracts common logic for building base env vars and Telegram webhook extraction.
 */
import { INightWatchConfig, IQueueEntry, getSchedulingPlan } from '@night-watch/core';
import type { JobType } from '@night-watch/core';
/**
 * Build the base environment variables shared by all job types.
 * Sets provider, queue, execution-context, and optional dry-run/default-branch env vars.
 * - NW_PROVIDER_CMD: the CLI binary for the resolved provider
 * - NW_PROVIDER_LABEL: human-friendly provider name for PR/comment attribution
 * - NW_DEFAULT_BRANCH: optional default branch
 * - providerEnv: merged into env
 * - NW_QUEUE_*: queue configuration for bash scripts
 * - NW_DRY_RUN: '1' when isDryRun is true
 * - NW_EXECUTION_CONTEXT: always 'agent'
 */
export declare function buildBaseEnvVars(config: INightWatchConfig, jobType: JobType, isDryRun: boolean): Record<string, string>;
export declare function getCronSchedulingPlan(config: INightWatchConfig, jobType: JobType, projectDir: string): import("@night-watch/core").ISchedulingPlan;
export declare function maybeApplyCronSchedulingDelay(config: INightWatchConfig, jobType: JobType, projectDir: string): Promise<ReturnType<typeof getSchedulingPlan>>;
/**
 * Format provider display for notifications/UI using command + label.
 */
export declare function formatProviderDisplay(providerCmd?: string, providerLabel?: string): string;
/**
 * Rebuild environment variables for a queued job from the job's own project config.
 * This ensures provider-specific env (ANTHROPIC_BASE_URL, API keys, model ids)
 * always comes from the queued job's own project config, not the dispatcher process env.
 */
export declare function buildQueuedJobEnv(entry: IQueueEntry): Record<string, string>;
/**
 * Extract Telegram webhooks that have both botToken and chatId configured.
 * Used for status messages from bash scripts (start/progress/final status).
 */
export declare function getTelegramStatusWebhooks(config: INightWatchConfig): Array<{
    botToken: string;
    chatId: string;
}>;
//# sourceMappingURL=env-builder.d.ts.map