How to Get Control Filter in my custom plugin

In this regards, I have searched on internet and found deprecated below mentioned code:

import FilterBarQueryFilterProvider from 'ui/filter_bar/query_filter';

// Somewhere in your directive, service, or controller
const queryFilter = Private(FilterBarQueryFilterProvider);
queryFilter.getFilters(); // returns array of pinned filters

In this regards, I have found some solution in Kibana latest document:

import { FilterBar } from 'plugins/data/public' . Directive is deprecated.
import { QueryStringInput } from 'plugins/data/public'

You are requested please provide proper solution how to get custom filters in my custom kibana plugin for 8.1.4 version.