TypeScript Hits & SearchResponse are private. Unable to properly type responses

We use Algolia search in our NestJs application I am trying to set the return type from an Algolia search like so

async searchAppDataIndex(
    searchString: string,
  ): SearchResponse<AlgoliaAppData> 

But I cant import the SearchResponse type and use it I see the below error.

Am I doing something wrong?