@adyen/kyc-components
Version:
This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.
19 lines (18 loc) • 797 B
TypeScript
import type { QueryOptions } from '../types';
import type { SearchAddressRequest, SearchAddressSuccessResponse } from './address.types';
export type QueryKeySearchAddress = ['searchAddress', SearchAddressRequest];
/**
* @param data
* @param options additional options passed to Tanstack Query, eg; refetchInterval for polling
*/
export declare const useSearchAddress: (data: SearchAddressRequest, options?: QueryOptions<SearchAddressSuccessResponse>) => import("@tanstack/preact-query").UseQueryResult<Omit<{
results?: import("./address.contract").components["schemas"]["AddressComponentSearchResult"][];
}, "results"> & {
results: {
description: string;
highlight: string;
id: string;
text: string;
type: "Address" | string;
}[];
}, Error>;