1 | import { ClipboardService } from './clipboard-service';
|
2 | import { ILogger } from '../common/logger';
|
3 | import { MessageService } from '../common/message-service';
|
4 | export interface NavigatorClipboard {
|
5 | readText(): Promise<string>;
|
6 | writeText(value: string): Promise<void>;
|
7 | }
|
8 | export interface PermissionStatus {
|
9 | state: 'granted' | 'prompt' | 'denied';
|
10 | }
|
11 | export interface NavigatorPermissions {
|
12 | query(options: {
|
13 | name: string;
|
14 | }): Promise<PermissionStatus>;
|
15 | }
|
16 | export declare class BrowserClipboardService implements ClipboardService {
|
17 | protected readonly messageService: MessageService;
|
18 | protected readonly logger: ILogger;
|
19 | readText(): Promise<string>;
|
20 | writeText(value: string): Promise<void>;
|
21 | protected queryPermission(name: string): Promise<PermissionStatus>;
|
22 | protected getClipboardAPI(): NavigatorClipboard;
|
23 | }
|
24 |
|
\ | No newline at end of file |