// Generated by typings // Source: https://raw.githubusercontent.com/aurelia/history/master/dist/aurelia-history.d.ts declare module 'aurelia-history' { /** * The options that can be specified as part of a history navigation request. */ export interface NavigationOptions { /** * Replace the existing route. */ replace?: boolean; /** * Trigger the router. */ trigger?: boolean; } /** * An abstract base class for implementors of the basic history api. */ export class History { /** * Activates the history object. * * @param options The set of options to activate history with. * @returns Whether or not activation occurred. */ activate(options: Object): boolean; /** * Deactivates the history object. */ deactivate(): void; /** * Returns the fully-qualified root of the current history object. * @returns The absolute root of the application. */ getAbsoluteRoot(): string; /** * Causes a history navigation to occur. * * @param fragment The history fragment to navigate to. * @param options The set of options that specify how the navigation should occur. * @returns True if navigation occurred/false otherwise. */ navigate(fragment: string, options?: NavigationOptions): boolean; /** * Causes the history state to navigate back. */ navigateBack(): void; /** * Updates the title associated with the current location. */ setTitle(title: string): void; } }