import { QueryParams } from './queryparams.types'; /** * An object containing information about a location. */ export interface Location { /** * Location path. * @requiredField path */ path: string; } /** * An object containing navigation and scrolling options. */ export interface NavOptions { /** * Whether the page scrolls to the top when navigating to the specified URL for a Wix page. Defaults to `false`. When `true`, the page remains at the same Y-axis position as the previously-viewed page. This setting doesn't affect scrolling for external URLs. */ disableScrollToTop?: boolean; } /** * Handles location change events. * @param event - The new location. * @requiredField event * @servicePath wix-location-frontend.Location */ export type LocationChangeHandler = (event: Location) => void;