import QueryManager from '../core/QueryManager' ; import type { Query } from '../core/SearchkitRequest' ; import BaseQuery from './BaseQuery' ; interface CustomQueryConfig { queryFn ( query , queryManager ? ) : Query | null ; } class CustomQuery implements BaseQuery { constructor ( private config ) { } getFilter ( queryManager ) { return this . config . queryFn ( queryManager . getQuery ( ) , queryManager ) ; } } export default CustomQuery ;