import { IUiSettingsClient } from 'src/core/public' ; import { IStorageWrapper } from 'src/plugins/opensearch_dashboards_utils/public' ; import { PersistedLog } from '../persisted_log' ; import { UI_SETTINGS } from '../../../common' ; internal export function getQueryLog ( uiSettings , storage , appName , language ) { return new PersistedLog ( `typeahead:${ appName }-${ language }` , { maxLength : uiSettings . get ( UI_SETTINGS . HISTORY_LIMIT ) , filterDuplicates : true , } , storage ) ; }