import type { UserEvents } from '../../core/user-events.d.ts'; import type { QueryOptions } from '../types'; import type { CompanySearchRequest, CompanySearchResponse } from './companySearch.types'; export type QueryKeyCompanySearch = ['companySearch', CompanySearchRequest]; /** * Supports querying declaratively (`useCompanySearch` hook) and imperatively * (`queryClient.fetchQuery()`) with the same config, ensuring no deviation occurs * between the two types. */ export declare const companySearchQueryOptions: (rootLegalEntityId: string, baseUrl: string, data: CompanySearchRequest, userEvents: UserEvents, options?: QueryOptions) => import("@tanstack/preact-query").OmitKeyof, "queryFn"> & { queryFn?: import("@tanstack/preact-query").QueryFunction<{ provider: import("./companySearch.contract").components["schemas"]["Provider"]; results: import("./companySearch.contract").components["schemas"]["ProviderAgnosticSearchCompanyResult"][]; }, import("../queryKeys").QueryKey, never> | undefined; } & import("@tanstack/preact-query").QueryKeyWithDataTag; export declare const useCompanySearch: (data: CompanySearchRequest, options?: QueryOptions) => import("@tanstack/preact-query").UseQueryResult<{ provider: import("./companySearch.contract").components["schemas"]["Provider"]; results: import("./companySearch.contract").components["schemas"]["ProviderAgnosticSearchCompanyResult"][]; }, Error>;