| /** |
| * @license |
| * Copyright Google LLC All Rights Reserved. |
| * |
| * Use of this source code is governed by an MIT-style license that can be |
| * found in the LICENSE file at https://angular.io/license |
| */ |
| /** |
| * A pending copy-to-clipboard operation. |
| * |
| * The implementation of copying text to the clipboard modifies the DOM and |
| * forces a relayout. This relayout can take too long if the string is large, |
| * causing the execCommand('copy') to happen too long after the user clicked. |
| * This results in the browser refusing to copy. This object lets the |
| * relayout happen in a separate tick from copying by providing a copy function |
| * that can be called later. |
| * |
| * Destroy must be called when no longer in use, regardless of whether `copy` is |
| * called. |
| */ |
| export declare class PendingCopy { |
| private readonly _document; |
| private _textarea; |
| constructor(text: string, _document: Document); |
| /** Finishes copying the text. */ |
| copy(): boolean; |
| /** Cleans up DOM changes used to perform the copy operation. */ |
| destroy(): void; |
| } |