1 | import { default as default_2 } from 'react';
|
2 | import { FC } from 'react';
|
3 | import { ForwardRefExoticComponent } from 'react';
|
4 | import { HTMLAttributes } from 'react';
|
5 | import { JSX as JSX_2 } from 'react/jsx-runtime';
|
6 | import { RefAttributes } from 'react';
|
7 | import { SVGProps } from 'react';
|
8 |
|
9 | export declare const BlueskyIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
10 | bgStyle?: React.CSSProperties;
|
11 | borderRadius?: number;
|
12 | iconFillColor?: string;
|
13 | round?: boolean;
|
14 | size?: number | string;
|
15 | }>;
|
16 |
|
17 | export declare const BlueskyShareButton: ForwardRefExoticComponent<Omit<Props< {
|
18 | title?: string;
|
19 | separator?: string;
|
20 | }>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & {
|
21 | title?: string;
|
22 | separator?: string;
|
23 | } & RefAttributes<HTMLButtonElement>>;
|
24 |
|
25 | export declare const EmailIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
26 | bgStyle?: React.CSSProperties;
|
27 | borderRadius?: number;
|
28 | iconFillColor?: string;
|
29 | round?: boolean;
|
30 | size?: number | string;
|
31 | }>;
|
32 |
|
33 | export declare const EmailShareButton: default_2.ForwardRefExoticComponent<Omit<Props<Options>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & Options & default_2.RefAttributes<HTMLButtonElement>>;
|
34 |
|
35 | export declare const FacebookIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
36 | bgStyle?: React.CSSProperties;
|
37 | borderRadius?: number;
|
38 | iconFillColor?: string;
|
39 | round?: boolean;
|
40 | size?: number | string;
|
41 | }>;
|
42 |
|
43 | export declare const FacebookMessengerIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
44 | bgStyle?: React.CSSProperties;
|
45 | borderRadius?: number;
|
46 | iconFillColor?: string;
|
47 | round?: boolean;
|
48 | size?: number | string;
|
49 | }>;
|
50 |
|
51 | export declare const FacebookMessengerShareButton: ForwardRefExoticComponent<Omit<Props<Options_2>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & Options_2 & RefAttributes<HTMLButtonElement>>;
|
52 |
|
53 | export declare const FacebookShareButton: ForwardRefExoticComponent<Omit<Props< {
|
54 | hashtag?: string;
|
55 | }>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & {
|
56 | hashtag?: string;
|
57 | } & RefAttributes<HTMLButtonElement>>;
|
58 |
|
59 | export declare const FacebookShareCount: {
|
60 | (props: Omit<Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
61 | children?: (shareCount: number) => React.ReactNode;
|
62 | getCount: (url: string, callback: (shareCount?: number) => void) => void;
|
63 | url: string;
|
64 | }, "getCount">): JSX_2.Element;
|
65 | displayName: string;
|
66 | };
|
67 |
|
68 | export declare const GabIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
69 | bgStyle?: React.CSSProperties;
|
70 | borderRadius?: number;
|
71 | iconFillColor?: string;
|
72 | round?: boolean;
|
73 | size?: number | string;
|
74 | }>;
|
75 |
|
76 | export declare const GabShareButton: ForwardRefExoticComponent<Omit<Props< {
|
77 | title?: string;
|
78 | }>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & {
|
79 | title?: string;
|
80 | } & RefAttributes<HTMLButtonElement>>;
|
81 |
|
82 | export declare const HatenaIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
83 | bgStyle?: React.CSSProperties;
|
84 | borderRadius?: number;
|
85 | iconFillColor?: string;
|
86 | round?: boolean;
|
87 | size?: number | string;
|
88 | }>;
|
89 |
|
90 | export declare const HatenaShareButton: ForwardRefExoticComponent<Omit<Props< {
|
91 | title?: string;
|
92 | }>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & {
|
93 | title?: string;
|
94 | } & RefAttributes<HTMLButtonElement>>;
|
95 |
|
96 | export declare const HatenaShareCount: {
|
97 | (props: Omit<Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
98 | children?: (shareCount: number) => React.ReactNode;
|
99 | getCount: (url: string, callback: (shareCount?: number) => void) => void;
|
100 | url: string;
|
101 | }, "getCount">): JSX_2.Element;
|
102 | displayName: string;
|
103 | };
|
104 |
|
105 | export declare const InstapaperIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
106 | bgStyle?: React.CSSProperties;
|
107 | borderRadius?: number;
|
108 | iconFillColor?: string;
|
109 | round?: boolean;
|
110 | size?: number | string;
|
111 | }>;
|
112 |
|
113 | export declare const InstapaperShareButton: ForwardRefExoticComponent<Omit<Props< {
|
114 | title?: string;
|
115 | description?: string;
|
116 | }>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & {
|
117 | title?: string;
|
118 | description?: string;
|
119 | } & RefAttributes<HTMLButtonElement>>;
|
120 |
|
121 | export declare const LineIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
122 | bgStyle?: React.CSSProperties;
|
123 | borderRadius?: number;
|
124 | iconFillColor?: string;
|
125 | round?: boolean;
|
126 | size?: number | string;
|
127 | }>;
|
128 |
|
129 | export declare const LineShareButton: ForwardRefExoticComponent<Omit<Props< {
|
130 | title?: string;
|
131 | }>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & {
|
132 | title?: string;
|
133 | } & RefAttributes<HTMLButtonElement>>;
|
134 |
|
135 | export declare const LinkedinIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
136 | bgStyle?: React.CSSProperties;
|
137 | borderRadius?: number;
|
138 | iconFillColor?: string;
|
139 | round?: boolean;
|
140 | size?: number | string;
|
141 | }>;
|
142 |
|
143 | export declare const LinkedinShareButton: ForwardRefExoticComponent<Omit<Props<Options_3>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & Options_3 & RefAttributes<HTMLButtonElement>>;
|
144 |
|
145 | export declare const LivejournalIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
146 | bgStyle?: React.CSSProperties;
|
147 | borderRadius?: number;
|
148 | iconFillColor?: string;
|
149 | round?: boolean;
|
150 | size?: number | string;
|
151 | }>;
|
152 |
|
153 | export declare const LivejournalShareButton: ForwardRefExoticComponent<Omit<Props< {
|
154 | title?: string;
|
155 | description?: string;
|
156 | }>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & {
|
157 | title?: string;
|
158 | description?: string;
|
159 | } & RefAttributes<HTMLButtonElement>>;
|
160 |
|
161 | export declare const MailruIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
162 | bgStyle?: React.CSSProperties;
|
163 | borderRadius?: number;
|
164 | iconFillColor?: string;
|
165 | round?: boolean;
|
166 | size?: number | string;
|
167 | }>;
|
168 |
|
169 | export declare const MailruShareButton: ForwardRefExoticComponent<Omit<Props< {
|
170 | title?: string;
|
171 | description?: string;
|
172 | imageUrl?: string;
|
173 | }>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & {
|
174 | title?: string;
|
175 | description?: string;
|
176 | imageUrl?: string;
|
177 | } & RefAttributes<HTMLButtonElement>>;
|
178 |
|
179 | declare type NetworkLink<LinkOptions> = (url: string, options: LinkOptions) => string;
|
180 |
|
181 | export declare const OKIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
182 | bgStyle?: React.CSSProperties;
|
183 | borderRadius?: number;
|
184 | iconFillColor?: string;
|
185 | round?: boolean;
|
186 | size?: number | string;
|
187 | }>;
|
188 |
|
189 | export declare const OKShareButton: ForwardRefExoticComponent<Omit<Props< {
|
190 | title?: string;
|
191 | description?: string;
|
192 | image?: string;
|
193 | }>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & {
|
194 | title?: string;
|
195 | description?: string;
|
196 | image?: string;
|
197 | } & RefAttributes<HTMLButtonElement>>;
|
198 |
|
199 | export declare const OKShareCount: {
|
200 | (props: Omit<Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
201 | children?: (shareCount: number) => React.ReactNode;
|
202 | getCount: (url: string, callback: (shareCount?: number) => void) => void;
|
203 | url: string;
|
204 | }, "getCount">): JSX_2.Element;
|
205 | displayName: string;
|
206 | };
|
207 |
|
208 | declare type Options = {
|
209 | body?: string;
|
210 | separator?: string;
|
211 | subject?: string;
|
212 | };
|
213 |
|
214 | declare type Options_2 = {
|
215 |
|
216 | appId: string;
|
217 | |
218 |
|
219 | redirectUri?: string;
|
220 | |
221 |
|
222 | to?: string;
|
223 | };
|
224 |
|
225 | declare type Options_3 = {
|
226 |
|
227 | title?: string;
|
228 |
|
229 | summary?: string;
|
230 |
|
231 | source?: string;
|
232 | };
|
233 |
|
234 | declare type Options_4 = {
|
235 | title?: string;
|
236 | caption?: string;
|
237 | posttype?: 'link' | string;
|
238 | };
|
239 |
|
240 | declare type Options_5 = {
|
241 | title?: string;
|
242 | image?: string;
|
243 | noParse?: boolean;
|
244 | noVkLinks?: boolean;
|
245 | };
|
246 |
|
247 | export declare const PinterestIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
248 | bgStyle?: React.CSSProperties;
|
249 | borderRadius?: number;
|
250 | iconFillColor?: string;
|
251 | round?: boolean;
|
252 | size?: number | string;
|
253 | }>;
|
254 |
|
255 | export declare const PinterestShareButton: ForwardRefExoticComponent<Omit<Props<PinterestShareProps>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & PinterestShareProps & RefAttributes<HTMLButtonElement>>;
|
256 |
|
257 | export declare const PinterestShareCount: {
|
258 | (props: Omit<Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
259 | children?: (shareCount: number) => React.ReactNode;
|
260 | getCount: (url: string, callback: (shareCount?: number) => void) => void;
|
261 | url: string;
|
262 | }, "getCount">): JSX_2.Element;
|
263 | displayName: string;
|
264 | };
|
265 |
|
266 | declare type PinterestShareProps = {
|
267 | media: string;
|
268 | description?: string;
|
269 | pinId?: string;
|
270 | };
|
271 |
|
272 | export declare const PocketIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
273 | bgStyle?: React.CSSProperties;
|
274 | borderRadius?: number;
|
275 | iconFillColor?: string;
|
276 | round?: boolean;
|
277 | size?: number | string;
|
278 | }>;
|
279 |
|
280 | export declare const PocketShareButton: ForwardRefExoticComponent<Omit<Props< {
|
281 | title?: string;
|
282 | }>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & {
|
283 | title?: string;
|
284 | } & RefAttributes<HTMLButtonElement>>;
|
285 |
|
286 | declare interface Props<LinkOptions> extends Omit<default_2.ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'> {
|
287 | |
288 |
|
289 |
|
290 |
|
291 | beforeOnClick?: () => Promise<void> | void;
|
292 | children: default_2.ReactNode;
|
293 | className?: string;
|
294 |
|
295 | disabled?: boolean;
|
296 | |
297 |
|
298 |
|
299 |
|
300 | disabledStyle?: default_2.CSSProperties;
|
301 | forwardedRef?: default_2.Ref<HTMLButtonElement>;
|
302 | |
303 |
|
304 |
|
305 | htmlTitle?: HTMLButtonElement['title'];
|
306 | networkName: string;
|
307 | networkLink: NetworkLink<LinkOptions>;
|
308 | onClick?: (event: default_2.MouseEvent<HTMLButtonElement>, link: string) => void;
|
309 | |
310 |
|
311 |
|
312 | onShareWindowClose?: () => void;
|
313 | openShareDialogOnClick?: boolean;
|
314 | opts: LinkOptions;
|
315 | resetButtonStyle?: boolean;
|
316 | |
317 |
|
318 |
|
319 | url: string;
|
320 | style?: default_2.CSSProperties;
|
321 | windowWidth?: number;
|
322 | windowHeight?: number;
|
323 | windowPosition?: WindowPosition;
|
324 | }
|
325 |
|
326 | export declare const RedditIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
327 | bgStyle?: React.CSSProperties;
|
328 | borderRadius?: number;
|
329 | iconFillColor?: string;
|
330 | round?: boolean;
|
331 | size?: number | string;
|
332 | }>;
|
333 |
|
334 | export declare const RedditShareButton: ForwardRefExoticComponent<Omit<Props< {
|
335 | title?: string;
|
336 | }>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & {
|
337 | title?: string;
|
338 | } & RefAttributes<HTMLButtonElement>>;
|
339 |
|
340 | export declare const RedditShareCount: {
|
341 | (props: Omit<Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
342 | children?: (shareCount: number) => React.ReactNode;
|
343 | getCount: (url: string, callback: (shareCount?: number) => void) => void;
|
344 | url: string;
|
345 | }, "getCount">): JSX_2.Element;
|
346 | displayName: string;
|
347 | };
|
348 |
|
349 | export declare const TelegramIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
350 | bgStyle?: React.CSSProperties;
|
351 | borderRadius?: number;
|
352 | iconFillColor?: string;
|
353 | round?: boolean;
|
354 | size?: number | string;
|
355 | }>;
|
356 |
|
357 | export declare const TelegramShareButton: ForwardRefExoticComponent<Omit<Props< {
|
358 | title?: string;
|
359 | }>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & {
|
360 | title?: string;
|
361 | } & RefAttributes<HTMLButtonElement>>;
|
362 |
|
363 | export declare const ThreadsIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
364 | bgStyle?: React.CSSProperties;
|
365 | borderRadius?: number;
|
366 | iconFillColor?: string;
|
367 | round?: boolean;
|
368 | size?: number | string;
|
369 | }>;
|
370 |
|
371 | export declare const ThreadsShareButton: ForwardRefExoticComponent<Omit<Props< {
|
372 | title?: string;
|
373 | via?: string;
|
374 | hashtags?: string[];
|
375 | related?: string[];
|
376 | }>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & {
|
377 | title?: string;
|
378 | via?: string;
|
379 | hashtags?: string[];
|
380 | related?: string[];
|
381 | } & RefAttributes<HTMLButtonElement>>;
|
382 |
|
383 | export declare const TumblrIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
384 | bgStyle?: React.CSSProperties;
|
385 | borderRadius?: number;
|
386 | iconFillColor?: string;
|
387 | round?: boolean;
|
388 | size?: number | string;
|
389 | }>;
|
390 |
|
391 | export declare const TumblrShareButton: ForwardRefExoticComponent<Omit<Props<Options_4 & {
|
392 | tags: string;
|
393 | }>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & Options_4 & {
|
394 | tags?: string[];
|
395 | } & RefAttributes<HTMLButtonElement>>;
|
396 |
|
397 | export declare const TumblrShareCount: {
|
398 | (props: Omit<Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
399 | children?: (shareCount: number) => React.ReactNode;
|
400 | getCount: (url: string, callback: (shareCount?: number) => void) => void;
|
401 | url: string;
|
402 | }, "getCount">): JSX_2.Element;
|
403 | displayName: string;
|
404 | };
|
405 |
|
406 | export declare const TwitterIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
407 | bgStyle?: React.CSSProperties;
|
408 | borderRadius?: number;
|
409 | iconFillColor?: string;
|
410 | round?: boolean;
|
411 | size?: number | string;
|
412 | }>;
|
413 |
|
414 | export declare const TwitterShareButton: ForwardRefExoticComponent<Omit<Props< {
|
415 | title?: string;
|
416 | via?: string;
|
417 | hashtags?: string[];
|
418 | related?: string[];
|
419 | }>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & {
|
420 | title?: string;
|
421 | via?: string;
|
422 | hashtags?: string[];
|
423 | related?: string[];
|
424 | } & RefAttributes<HTMLButtonElement>>;
|
425 |
|
426 | export declare const ViberIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
427 | bgStyle?: React.CSSProperties;
|
428 | borderRadius?: number;
|
429 | iconFillColor?: string;
|
430 | round?: boolean;
|
431 | size?: number | string;
|
432 | }>;
|
433 |
|
434 | export declare const ViberShareButton: ForwardRefExoticComponent<Omit<Props< {
|
435 | title?: string;
|
436 | separator?: string;
|
437 | }>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & {
|
438 | title?: string;
|
439 | separator?: string;
|
440 | } & RefAttributes<HTMLButtonElement>>;
|
441 |
|
442 | export declare const VKIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
443 | bgStyle?: React.CSSProperties;
|
444 | borderRadius?: number;
|
445 | iconFillColor?: string;
|
446 | round?: boolean;
|
447 | size?: number | string;
|
448 | }>;
|
449 |
|
450 | export declare const VKShareButton: ForwardRefExoticComponent<Omit<Props<Options_5>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & Options_5 & RefAttributes<HTMLButtonElement>>;
|
451 |
|
452 | export declare const VKShareCount: {
|
453 | (props: Omit<Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
454 | children?: (shareCount: number) => React.ReactNode;
|
455 | getCount: (url: string, callback: (shareCount?: number) => void) => void;
|
456 | url: string;
|
457 | }, "getCount">): JSX_2.Element;
|
458 | displayName: string;
|
459 | };
|
460 |
|
461 | export declare const WeiboIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
462 | bgStyle?: React.CSSProperties;
|
463 | borderRadius?: number;
|
464 | iconFillColor?: string;
|
465 | round?: boolean;
|
466 | size?: number | string;
|
467 | }>;
|
468 |
|
469 | export declare const WeiboShareButton: ForwardRefExoticComponent<Omit<Props< {
|
470 | title?: string;
|
471 | image?: string;
|
472 | }>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & {
|
473 | title?: string;
|
474 | image?: string;
|
475 | } & RefAttributes<HTMLButtonElement>>;
|
476 |
|
477 | export declare const WhatsappIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
478 | bgStyle?: React.CSSProperties;
|
479 | borderRadius?: number;
|
480 | iconFillColor?: string;
|
481 | round?: boolean;
|
482 | size?: number | string;
|
483 | }>;
|
484 |
|
485 | export declare const WhatsappShareButton: ForwardRefExoticComponent<Omit<Props< {
|
486 | title?: string;
|
487 | separator?: string;
|
488 | }>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & {
|
489 | title?: string;
|
490 | separator?: string;
|
491 | } & RefAttributes<HTMLButtonElement>>;
|
492 |
|
493 | declare type WindowPosition = 'windowCenter' | 'screenCenter';
|
494 |
|
495 | export declare const WorkplaceIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
496 | bgStyle?: React.CSSProperties;
|
497 | borderRadius?: number;
|
498 | iconFillColor?: string;
|
499 | round?: boolean;
|
500 | size?: number | string;
|
501 | }>;
|
502 |
|
503 | export declare const WorkplaceShareButton: ForwardRefExoticComponent<Omit<Props< {
|
504 | quote?: string;
|
505 | hashtag?: string;
|
506 | }>, "forwardedRef" | "networkLink" | "opts" | "networkName"> & {
|
507 | quote?: string;
|
508 | hashtag?: string;
|
509 | } & RefAttributes<HTMLButtonElement>>;
|
510 |
|
511 | export declare const XIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
512 | bgStyle?: React.CSSProperties;
|
513 | borderRadius?: number;
|
514 | iconFillColor?: string;
|
515 | round?: boolean;
|
516 | size?: number | string;
|
517 | }>;
|
518 |
|
519 | export { }
|
520 |
|
521 | declare global {
|
522 | interface Window {
|
523 | OK: {
|
524 | Share: {
|
525 | count: (index: number, _count: number) => void;
|
526 | };
|
527 | callbacks: ((count?: number) => void)[];
|
528 | };
|
529 | ODKL: {
|
530 | updateCount: (index: string, count: string) => void;
|
531 | };
|
532 | }
|
533 | }
|
534 |
|
535 | declare global {
|
536 | interface Window {
|
537 | VK: {
|
538 | Share?: {
|
539 | count: (index: number, count: number) => void;
|
540 | };
|
541 | callbacks?: ((count?: number) => void)[];
|
542 | };
|
543 | }
|
544 | }
|
545 |
|
\ | No newline at end of file |