/** * URL scheme allow-list for user/admin-authored links (widget CTAs, menu * items, tile links). Blocks the `javascript:` / `data:` / `vbscript:` href * XSS vector while letting through the schemes a storefront link legitimately * uses. * * Used on both surfaces: * - server: `resolveLink` neutralizes an unsafe stored value to `null` so it * never reaches an `href` (the security boundary), * - client: the LinkPicker "Custom" tab warns the merchant as they type. */ /** * True when `url` is safe to place in an `href`. Relative paths, anchors and * query links are safe; absolute URLs must use an allow-listed scheme. * * Browsers strip TAB/LF/CR anywhere in a URL and ignore leading control * characters before a scheme, so `java\tscript:alert(1)` executes — the check * strips control characters before inspecting the scheme to close that hole. */ export declare function isSafeUrl(url: unknown): boolean;