import type { Location } from "@opentripplanner/types"; export type FromToLocation = { locationType: string; location: Location; reverseGeocode?: boolean; }; export type FromToPickerProps = { /** * Specifies the label to be rendered, or if set to true, renders the default label "Plan a trip:". */ label?: boolean | React.ReactElement | string; /** * A specific location to associate with this. This is only used when combined * with the setLocation prop. */ location?: Location; /** * Triggered when the user clicks on the "from" button. */ onFromClick?: () => void; /** * Triggered when the user clicks on the "to" button. */ onToClick?: () => void; /** * Triggered when the user clicks either the "from" or "to" button and there * are no from/to specific handler functions defined as props. * * Passes an argument as follows: * { locationType: "from/to", location, reverseGeocode: false } */ setLocation?: (location: FromToLocation) => void; /** * Determines whether icons are shown on the "from" and "to" buttons. */ showIcons?: boolean; }; //# sourceMappingURL=types.d.ts.map