import ApiMethodInstance from '../models/ApiMethodInstance'; import Lookup from '../models/Lookup'; /** * @deprecated Use {@link LookupCollection} from `udp-stencil-component-library` instead. * Old shape: `{ [field: string]: Lookup }` */ export type DeprecatedLookupCollection = { [field: string]: Lookup; }; /** * value - id of lookup * lookupKeyName - used to find the correct lookup key/value pair * lookupValueName - the value in which to replace the target value */ interface LookupConfig { value: string; lookupKeyName: string | null | undefined; lookupValueName: string | null | undefined; } type ExecuteInstanceAndMapLookups = (queryParams: any, apiMethodInstanceId: string | null | undefined, replaceCache: boolean | null | undefined, showSnackbars?: boolean | null | undefined, urlQueryParams?: string) => Promise; type ExecuteInstanceWithObjectAndMapLookups = (queryParams: any, apiMethodInstance: ApiMethodInstance | null | undefined | any, replaceCache: boolean | null | undefined, showSnackbars?: boolean | null | undefined, urlQueryParams?: string) => Promise; type ExecuteAdHocAndMapLookups = (searchObject: any, apiMethodId: string | null | undefined, lookupsMap: Record | null | undefined, replaceCache: boolean | null | undefined, showSnackbars?: boolean | null | undefined) => Promise; export interface UseQueryExecutorsReturn { executeQueryInstanceAndMapLookups: ExecuteInstanceAndMapLookups; executeQueryInstanceWithObjectAndMapLookups: ExecuteInstanceWithObjectAndMapLookups; executeQueryAdHocAndMapLookups: ExecuteAdHocAndMapLookups; getCleanData: (data: any, lookupsMap: Record | null | undefined) => any; getLookup: (lookupId: string) => any; } export declare const useQueryExecutors: () => UseQueryExecutorsReturn; export {}; //# sourceMappingURL=useQueryExecutors.d.ts.map