import { Domain, DomainModule, SearchFilter, SearchOptions as BfSearchOptions } from 'bf-types'; import { Nullable } from '../common'; import type { HeadersType, ObjectType } from '../system/Types'; import { RequestMethod } from './Consts'; export declare type SearchOptions = Omit & { headers?: H; withFormData?: boolean; }; export interface Api { (method: RequestMethod, uri: string, data?: P, headers?: H): Promise>; get: (uri: string, params?: P, headers?: H, customBaseUrl?: string) => Promise>; delete: (uri: string, params?: P, headers?: H, customBaseUrl?: string) => Promise>; post: (uri: string, payload?: P, headers?: H, customBaseUrl?: string) => Promise>; put: (uri: string, payload?: P, headers?: H, customBaseUrl?: string) => Promise>; search: (domain: Domain, module: DomainModule, filters: SearchFilter[], options?: SearchOptions) => Promise; }