export interface GroundcoverConfig { /** * The API Key for the groundcover backend. * If not provided, it will fallback to the GC_API_KEY environment variable. */ apiKey?: string; /** * The Backend ID (tenant ID) for your environment. * If not provided, it will fallback to the GC_BACKEND_ID environment variable. */ backendId?: string; /** * The Base URL of the groundcover API. * Defaults to 'https://api.groundcover.com' or the GC_BASE_URL environment variable. */ baseUrl?: string; /** * Maximum number of automatic retries on failure (default: 3). */ maxRetries?: number; /** * Request timeout in milliseconds (default: 30000). */ timeout?: number; /** * If true, allows creating the client without an API Key or Backend ID. * Useful for hitting public endpoints or if auth is handled externally. */ allowUnauthenticated?: boolean; /** * Custom fetch implementation to use instead of the global fetch. */ fetch?: typeof fetch; /** * Minimum wait time between retries in milliseconds (default: 1000). */ minRetryWait?: number; /** * Maximum wait time between retries in milliseconds (default: 30000). */ maxRetryWait?: number; /** * Array of HTTP status codes that trigger a retry (default: [429, 503]). */ retryStatuses?: number[]; /** * Default traceparent header to include in all requests. * Can also be set via the GC_TRACEPARENT environment variable. */ traceparent?: string; } export declare function initClient(config?: GroundcoverConfig): import("./_generated/client/types.gen.js").Client;