import { IWebMentionHandler } from "../interfaces/web-mention-handler.interface"; import { IWebMentionStorage } from "../interfaces/web-mention-storage.interface"; import { Mention } from "../types/mention.type"; import { SimpleMention } from "../types/simple-mention.type"; import { SuggestedResponse } from "../types/suggested-response.type"; import { WebMentionOptions } from "../types/web-mention-options.type"; export declare class WebMentionHandler implements IWebMentionHandler { storageHandler: IWebMentionStorage; supportedHosts: string[]; requiredProtocol?: string; whitelist?: string[]; blacklist?: string[]; stripQueryParameters: boolean; constructor(options: WebMentionOptions); /** * Adds a new pending web mention to be handled */ addPendingMention(source: string, target: string): Promise; /** * Converts a pending webmention to a set of parsed webmentions by fetching the information from the source * server */ processMention(mention: SimpleMention): Promise; /** * Calls processMention on a collection of pending webmentions */ processPendingMentions(): Promise; /** * Grabs a list of parsed webmentions for a given page. Optionally filter by mention type. */ getMentionsForPage(page: string, type?: string | undefined): Promise; }