1 | import * as React from "react";
|
2 |
|
3 | export as namespace CopyToClipboard;
|
4 |
|
5 | declare class CopyToClipboard extends React.PureComponent<CopyToClipboard.Props> {}
|
6 |
|
7 | declare namespace CopyToClipboard {
|
8 | class CopyToClipboard extends React.PureComponent<Props> {}
|
9 |
|
10 | interface Options {
|
11 | debug?: boolean | undefined;
|
12 | message?: string | undefined;
|
13 | format?: string | undefined;
|
14 | }
|
15 |
|
16 | interface Props {
|
17 | children?: React.ReactNode;
|
18 | text: string;
|
19 | onCopy?(text: string, result: boolean): void;
|
20 | options?: Options | undefined;
|
21 | }
|
22 | }
|
23 |
|
24 | export = CopyToClipboard;
|