Ionic3 Algolia Firestore Search - Importing Issue

I am trying to fetch some product list from algolia backend. I tried to add algolia to the ionic3 app using the following command

npm install instantsearch.js --save

but in importing the instantsearch in the page throws the following error

Could not find a declaration file for module ‘instantsearch.js/es/widgets’. ‘…/algoliaIntegration/node_modules/instantsearch.js/es/widgets/index.js’ implicitly has an ‘any’ type. Try npm install @types/instantsearch.js if it exists or add a new declaration (.d.ts) file containing declare module ‘instantsearch.js’;

i tried to import using both the below methods


import instantsearch from 'instantsearch.js/es';

import { searchBox } from 'instantsearch.js/es/widgets'; 


import * as instantsearch from 'instantsearch.js'

Could you please guide me with the solution, or is it something I am doing wrong.