/** * Dodo Payments API client for event ingestion. * Wraps the official `dodopayments` SDK and exposes a minimal surface area. */ import { DodoConfig, DodoEvent, IngestResponse } from './types.js'; /** * Client responsible for validating and ingesting usage events. */ export declare class DodoClient { private readonly client; private readonly environment; /** * Create a Dodo client. * * @throws ValidationError when the API key is missing */ constructor(config: DodoConfig); /** * Submit events to Dodo Payments ingestion endpoint. */ ingestEvents(events: DodoEvent[]): Promise; /** * Submit a single event. */ ingestEvent(event: DodoEvent): Promise; /** * Health check to verify API reachability and credentials. */ healthCheck(): Promise; /** * Validate a single event structure. */ private validateEvent; /** * Get the configured environment. */ getEnvironment(): string; /** * Get client information for debugging. * NOTE: Consider injecting real SDK version from package.json at build time. */ getClientInfo(): { environment: string; sdkVersion: string; }; } //# sourceMappingURL=client.d.ts.map