import Page from './common/Page'; import User from './common/User'; import { MediaWikiEvent } from './EventStream'; interface LinkChange { /** Link being removed */ link: string; /** Whether the link is external */ external: boolean; } /** Represents a MW Page Links Change event. */ export default interface MediaWikiPageLinksChangeEvent extends MediaWikiEvent, Page { /** Represents the user that performed this change. */ performer?: User; /** Chronology Protector client ID. */ chronology_id?: string; /** The head revision of the page at the time of this event. */ rev_id: number; /** * The old page links. This map would only contain the previous * values of the links that were either removed or changed by * this event. Links that were intact would not be present here. * If the link was changed, its new value would be present in the * 'added_links' object. */ removed_links?: LinkChange[]; /** * The new page links. This map would only contain links that were * either added or changed, links that were intact would not be * present here. If the link was changed, its previous value would * be present in the 'removed_links' object. */ added_links?: LinkChange[]; } /** * * @param object */ export declare function isMediaWikiPageLinksChangeEvent(object: any): object is MediaWikiPageLinksChangeEvent; export {};