import { default as default_2 } from 'react'; import { FC } from 'react'; import { ForwardRefExoticComponent } from 'react'; import { HTMLAttributes } from 'react'; import { JSX as JSX_2 } from 'react/jsx-runtime'; import { RefAttributes } from 'react'; import { SVGProps } from 'react'; export declare const BlueskyIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const BlueskyShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & { title?: string; separator?: string; } & RefAttributes>; export declare const EmailIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const EmailShareButton: default_2.ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & Options & default_2.RefAttributes>; export declare const FacebookIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const FacebookMessengerIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const FacebookMessengerShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & Options_2 & RefAttributes>; export declare const FacebookShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & { hashtag?: string; } & RefAttributes>; export declare const FacebookShareCount: { (props: Omit, "children"> & { children?: (shareCount: number) => React.ReactNode; getCount: (url: string, callback: (shareCount?: number) => void) => void; url: string; }, "getCount">): JSX_2.Element; displayName: string; }; export declare const GabIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const GabShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & { title?: string; } & RefAttributes>; export declare const HatenaIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const HatenaShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & { title?: string; } & RefAttributes>; export declare const HatenaShareCount: { (props: Omit, "children"> & { children?: (shareCount: number) => React.ReactNode; getCount: (url: string, callback: (shareCount?: number) => void) => void; url: string; }, "getCount">): JSX_2.Element; displayName: string; }; export declare const InstapaperIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const InstapaperShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & { title?: string; description?: string; } & RefAttributes>; export declare const LineIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const LineShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & { title?: string; } & RefAttributes>; export declare const LinkedinIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const LinkedinShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & Options_3 & RefAttributes>; export declare const LivejournalIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const LivejournalShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & { title?: string; description?: string; } & RefAttributes>; export declare const MailruIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const MailruShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & { title?: string; description?: string; imageUrl?: string; } & RefAttributes>; declare type NetworkLink = (url: string, options: LinkOptions) => string; export declare const OKIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const OKShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & { title?: string; description?: string; image?: string; } & RefAttributes>; export declare const OKShareCount: { (props: Omit, "children"> & { children?: (shareCount: number) => React.ReactNode; getCount: (url: string, callback: (shareCount?: number) => void) => void; url: string; }, "getCount">): JSX_2.Element; displayName: string; }; declare type Options = { body?: string; separator?: string; subject?: string; }; declare type Options_2 = { /** Your app's unique identifier. */ appId: string; /** The URL to redirect to after a person clicks a button on the dialog. * Required when using URL redirection. */ redirectUri?: string; /** A user ID of a recipient. Once the dialog comes up, the sender can * specify additional people as recipients. */ to?: string; }; declare type Options_3 = { /** The url-encoded title value that you wish you use. */ title?: string; /** The url-encoded description that you wish you use. */ summary?: string; /** The url-encoded source of the content (e.g. your website or application name) */ source?: string; }; declare type Options_4 = { title?: string; caption?: string; posttype?: 'link' | string; }; declare type Options_5 = { title?: string; image?: string; noParse?: boolean; noVkLinks?: boolean; }; export declare const PinterestIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const PinterestShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & PinterestShareProps & RefAttributes>; export declare const PinterestShareCount: { (props: Omit, "children"> & { children?: (shareCount: number) => React.ReactNode; getCount: (url: string, callback: (shareCount?: number) => void) => void; url: string; }, "getCount">): JSX_2.Element; displayName: string; }; declare type PinterestShareProps = { media: string; description?: string; pinId?: string; }; export declare const PocketIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const PocketShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & { title?: string; } & RefAttributes>; declare interface Props extends Omit, 'onClick'> { /** * Takes a function that returns a Promise to be fulfilled before calling * `onClick`. If you do not return promise, `onClick` is called immediately. */ beforeOnClick?: () => Promise | void; children: default_2.ReactNode; className?: string; /** Disables click action and adds `disabled` class */ disabled?: boolean; /** * Style when button is disabled * @default { opacity: 0.6 } */ disabledStyle?: default_2.CSSProperties; forwardedRef?: default_2.Ref; /** * Passes as the native `title` atribute for the `button` element. */ htmlTitle?: HTMLButtonElement['title']; networkName: string; networkLink: NetworkLink; onClick?: (event: default_2.MouseEvent, link: string) => void; /** * Takes a function to be called after closing share dialog. */ onShareWindowClose?: () => void; openShareDialogOnClick?: boolean; opts: LinkOptions; resetButtonStyle?: boolean; /** * URL of the shared page */ url: string; style?: default_2.CSSProperties; windowWidth?: number; windowHeight?: number; windowPosition?: WindowPosition; } export declare const RedditIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const RedditShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & { title?: string; } & RefAttributes>; export declare const RedditShareCount: { (props: Omit, "children"> & { children?: (shareCount: number) => React.ReactNode; getCount: (url: string, callback: (shareCount?: number) => void) => void; url: string; }, "getCount">): JSX_2.Element; displayName: string; }; export declare const TelegramIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const TelegramShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & { title?: string; } & RefAttributes>; export declare const ThreadsIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const ThreadsShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & { title?: string; via?: string; hashtags?: string[]; related?: string[]; } & RefAttributes>; export declare const TumblrIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const TumblrShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & Options_4 & { tags?: string[]; } & RefAttributes>; export declare const TumblrShareCount: { (props: Omit, "children"> & { children?: (shareCount: number) => React.ReactNode; getCount: (url: string, callback: (shareCount?: number) => void) => void; url: string; }, "getCount">): JSX_2.Element; displayName: string; }; export declare const TwitterIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const TwitterShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & { title?: string; via?: string; hashtags?: string[]; related?: string[]; } & RefAttributes>; export declare const ViberIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const ViberShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & { title?: string; separator?: string; } & RefAttributes>; export declare const VKIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const VKShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & Options_5 & RefAttributes>; export declare const VKShareCount: { (props: Omit, "children"> & { children?: (shareCount: number) => React.ReactNode; getCount: (url: string, callback: (shareCount?: number) => void) => void; url: string; }, "getCount">): JSX_2.Element; displayName: string; }; export declare const WeiboIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const WeiboShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & { title?: string; image?: string; } & RefAttributes>; export declare const WhatsappIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const WhatsappShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & { title?: string; separator?: string; } & RefAttributes>; declare type WindowPosition = 'windowCenter' | 'screenCenter'; export declare const WorkplaceIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export declare const WorkplaceShareButton: ForwardRefExoticComponent, "forwardedRef" | "networkLink" | "opts" | "networkName"> & { quote?: string; hashtag?: string; } & RefAttributes>; export declare const XIcon: FC, "width" | "height"> & { bgStyle?: React.CSSProperties; borderRadius?: number; iconFillColor?: string; round?: boolean; size?: number | string; }>; export { } declare global { interface Window { OK: { Share: { count: (index: number, _count: number) => void; }; callbacks: ((count?: number) => void)[]; }; ODKL: { updateCount: (index: string, count: string) => void; }; } } declare global { interface Window { VK: { Share?: { count: (index: number, count: number) => void; }; callbacks?: ((count?: number) => void)[]; }; } }