// testchimp-js.d.ts

declare module 'testchimp-js' {
  export interface TestChimpSDKConfig {
    enableRecording?: boolean;
    endpoint?: string;
    projectId: string;
    sessionRecordingApiKey: string;
    samplingProbability?: number;
    maxSessionDurationSecs?: number;
    samplingProbabilityOnError?: number;
    eventWindowToSaveOnError?: number;
    tracedUriRegexListToTrack?: string;
    untracedUriRegexListToTrack?: string;
    excludedUriRegexList?: string[];
    environment?: string;
    enableLogging?: boolean;
    enableOptionsCallTracking?: boolean;
  }

  export class TestChimpSDK {
    static startRecording(options: TestChimpSDKConfig): void;
    static endTrackedSession(): void;
    static stopRecording(): void;
    static setCurrentUserId(userId: string): void;
  }
}
