import { HTMLAttributes, default as React } from 'react';
import { PriceFormatter } from '../../atoms/Price/Price';
import { LinkElementType, LinkProps } from '../..';
interface ShippingSLA {
/**
* ShippingSLA carrier.
*/
carrier: string;
/**
* ShippingSLA localized shipping estimate.
*/
localizedEstimates: string;
/**
* ShippingSLA price.
*/
price: number;
}
interface Address {
/**
* Address postal code
*/
postalCode?: string;
/**
* Address city
*/
city?: string;
/**
* Address state
*/
state?: string;
/**
* Address country
*/
country?: string;
/**
* Address street
*/
street?: string;
/**
* Address number
*/
number?: string;
/**
* Address neighborhood
*/
neighborhood?: string;
/**
* Address complement
*/
complement?: string;
/**
* Address reference
*/
reference?: string;
/**
* Address geoCoordinates. [longitude, latitude]
*/
geoCoordinates?: [number, number];
}
export interface ShippingSimulationProps extends HTMLAttributes {
/**
* ID to find this component in testing tools (e.g.: cypress,
* testing-library, and jest).
*/
testId?: string;
/**
* Formatter function that transforms the raw price value and render the result.
*/
formatter: PriceFormatter;
/**
* The Shipping Suggestions Section's title.
*/
title?: string;
/**
* The text displayed to Shipping Simulation input text.
*/
inputLabel?: string;
/**
* The text displayed in Shipping options table.
*/
optionsLabel?: string;
/**
* Props for the link `I don't know my Postal Code`.
*/
idkPostalCodeLinkProps?: Partial>;
/**
* Callback function when input is typed.
*/
onInput?: (event: React.FormEvent) => void;
/**
* Callback function when form is submitted.
*/
onSubmit?: () => void;
/**
* Callback function when the input clear button is clicked.
*/
onClear?: () => void;
/**
* Location for shipping.
*/
location?: string;
/**
* Address for shipping.
*/
address?: Address;
/**
* Options for shipping simulation.
*/
options?: ShippingSLA[];
/**
* Show clear button.
*/
displayClearButton?: boolean;
/**
* Message of error for input.
*/
errorMessage?: string;
/**
* Postal code.
*/
postalCode?: string;
}
declare function ShippingSimulation({ testId, formatter, title, inputLabel, optionsLabel, idkPostalCodeLinkProps, onInput, onSubmit, onClear, location, options, displayClearButton, errorMessage, postalCode, ...otherProps }: ShippingSimulationProps): React.JSX.Element;
export default ShippingSimulation;
//# sourceMappingURL=ShippingSimulation.d.ts.map