/** Core */ import { Generic } from "cmf.core/src/core"; import { LinkMetadata } from "cmf.core/src/domain/extensions/navigation"; /** Component dependencies */ import { ModalViewInstance } from "../../components/modalView/modalView"; import { Location } from "@angular/common"; import { Router } from "@angular/router"; export declare class Link extends Generic { private _modalViewInstance; private _router; private _isInternal; private _metadata; visibleTarget: string; visibleAlt: string; url: string; isDisabled: boolean; /** * Callback invoked right before the link is clicked */ onBeforeLinkClick: (data: string | LinkMetadata) => any; /** * Flag to control if navigation opens a new page. * Defaults is false, which maintains current behaviour. If set to true, clicking on a navigation will always open a new page, which overrides * the default behaviour. */ isNewPageRequired: boolean; static navigateTo(router: Router, currentLocation: Location, linkMetadata: LinkMetadata, modalViewInstance: ModalViewInstance): boolean; /** * If we ask for a ModalViewInstance and we get one, then this directive is inside a modal view * and thus the navigation should be forced to a new page. If no ModalViewInstance is provided, * then the navigation should follow in the same page (default). */ constructor(_modalViewInstance: ModalViewInstance, _router: Router); linkParams: any[] | LinkMetadata; onLinkClick(): boolean; } export declare class LinkModule { }