eaace38c4076ef04f8b667ffce952ba9a841463b08e26bf8592994147ce2459308eb03cf2502b47fc2f85b59e00da282ae9b13d0442ea186e08eba5702a0f6 513 B

12345678910111213
  1. import Inline from '../blots/inline.js';
  2. declare class Link extends Inline {
  3. static blotName: string;
  4. static tagName: string;
  5. static SANITIZED_URL: string;
  6. static PROTOCOL_WHITELIST: string[];
  7. static create(value: string): HTMLElement;
  8. static formats(domNode: HTMLElement): string | null;
  9. static sanitize(url: string): string;
  10. format(name: string, value: unknown): void;
  11. }
  12. declare function sanitize(url: string, protocols: string[]): boolean;
  13. export { Link as default, sanitize };