import type { QueryOptions } from '../types';
import type { components } from './address.contract';
export type SearchAddressRequest = components['schemas']['AddressComponentSearchRequest'];
export interface SearchAddressResult {
    description: string;
    highlight: string;
    id: string;
    text: string;
    type: 'Address' | string;
    addressAmount?: string;
}
export type SearchAddressSuccessResponse = Omit<components['schemas']['AddressComponentSearchResponse'], 'results'> & {
    results: SearchAddressResult[];
};
export declare const searchAddress: (legalEntityId: string, url: string, data: SearchAddressRequest) => Promise<SearchAddressSuccessResponse>;
/**
 * @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/react-query").UseQueryResult<SearchAddressSuccessResponse, Error>;
