import type { TelemetryClientOptions, TelemetryJourneyEndRequest, TelemetryJourneyEventResponse, TelemetryJourneyInteractionRequest, TelemetryJourneyProgressRequest, TelemetryJourneySessionHelper, TelemetryJourneyStartResponse } from '../../shared/reddit/index.js'; export type TelemetryClient = { journeySession: TelemetryJourneySessionHelper; getActiveJourneyId(): string | undefined; setJourneyId(journeyId: string): void; clearJourneyId(): void; startJourney(): Promise; progress(input: Omit): Promise; interaction(input: Omit): Promise; endJourney(input?: Omit): Promise; appReady(): Promise; }; /** * Creates a telemetry client for browser usage that posts to the telemetry * router on the server. * * For the default configuration, use the shared `telemetry` client. * * @example * ```ts * import { telemetry } from '@devvit/analytics/client/reddit'; * * const { journeyId } = await telemetry.startJourney(); * await telemetry.interaction({ action: 'game_start', actionDetails: 'cta' }); * ``` */ export declare function createTelemetryClient(options?: TelemetryClientOptions): TelemetryClient; /** * Default telemetry client that uses the standard `/api/telemetry` base path. * * @example * ```ts * import { telemetry } from '@devvit/analytics/client/reddit'; * * const { journeyId } = await telemetry.startJourney(); * await telemetry.interaction({ action: 'level_start', actionDetails: 'start' }); * ``` */ export declare const telemetry: TelemetryClient; //# sourceMappingURL=telemetry.d.ts.map