export interface AuthResult { type: "api_key" | "env" | "claude_code" | "github_token" | "github_env" | "github_cli"; provider: "anthropic" | "copilot"; apiKey?: string; githubToken?: string; } /** * Resolves authentication for Anthropic using the 3-step chain: * 1. --anthropic-api-key flag * 2. ANTHROPIC_API_KEY environment variable * 3. Claude Code session (SDK handles this when no key is provided) */ export declare function resolveAuth(options: { apiKeyFlag?: string; }): AuthResult; /** * Resolves authentication for Copilot using the 3-step chain: * 1. --github-token flag * 2. COPILOT_GITHUB_TOKEN / GH_TOKEN / GITHUB_TOKEN environment variables * 3. GitHub CLI stored credentials (Copilot SDK handles this) */ export declare function resolveCopilotAuth(options: { githubTokenFlag?: string; }): AuthResult; /** * Resolves authentication for the given provider. */ export declare function resolveAuthForProvider(provider: "anthropic" | "copilot", options: { apiKeyFlag?: string; githubTokenFlag?: string; }): AuthResult; /** * Returns the environment variables to pass to the Agent SDK. * Sets the appropriate key based on the provider. */ export declare function getAgentEnv(auth: AuthResult): Record; //# sourceMappingURL=auth.d.ts.map