import type { Component } from 'svelte'; /** * Custom platform definition injected via the `extraPlatforms` prop. * `icon` is a lucide-svelte component; `getUrl` builds the share URL * from the share URL + text already resolved by the component. */ type SharePlatform = { id: string; label: string; icon: Component; getUrl: (opts: { url: string; text: string; }) => string; }; interface Props { url?: string; title?: string; text?: string; class?: string; /** Additional platform buttons rendered after the built-ins. */ extraPlatforms?: SharePlatform[]; } declare const ShareButton: Component; type ShareButton = ReturnType; export default ShareButton;