signal-desktop/js/modules/link_previews.d.ts
2020-11-04 13:03:13 -06:00

12 lines
388 B
TypeScript

// Copyright 2019-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
export function isLinkSafeToPreview(link: string): boolean;
export function findLinks(text: string, caretLocation?: number): Array<string>;
export function getDomain(href: string): string;
export function isLinkSneaky(link: string): boolean;
export function isStickerPack(href: string): boolean;