/**
 * Adapter-specific error helpers for gemini-cli.
 *
 * Maps raw failures (gemini CLI non-zero exit, timeout/abort) to the
 * canonical ProviderError hierarchy. Mirrors openai-codex/errors.ts but
 * scoped to the minimal-body surface.
 */
import { type ProviderError } from '../../errors.js';
import type { ProviderId } from '../../types.js';
export declare const GEMINI_CLI_ID: ProviderId;
/**
 * Map a raw spawn-style error from spawning `gemini` into a canonical
 * provider error. Stderr is inspected for auth / rate-limit / quota /
 * network signatures (the same classification shape codex uses) so the
 * circuit breaker's rate-limit classifier can see usage/limit language.
 */
export declare function mapExecError(err: Error & {
    code?: string | number;
    signal?: string;
    killed?: boolean;
    path?: string;
}, stderr?: string): ProviderError;
//# sourceMappingURL=errors.d.ts.map