/************************************************************************* * Copyright 2020 Adobe * All Rights Reserved. * * NOTICE: Adobe permits you to use, modify, and distribute this file in * accordance with the terms of the Adobe license agreement accompanying * it. If you have received this file from a source other than Adobe, * then your use, modification, or distribution of it requires the prior * written permission of Adobe. **************************************************************************/ /** * @packageDocumentation * @module metrics */ /** * Defines APIs used to log history events. */ export default interface History { /** * Records a history replace event. * @param path The current URL. * @param state Optional. The state associated to the event. * @param args Additional data associated to the event. */ replace(path: string, state?: any, ...args: any): void; /** * Records a history push event. * @param path The current URL. * @param state Optional. The state associated to the event. * @param args Additional data associated to the event. */ push(path: string, state?: any, ...args: any): void; }