UNPKG

910 BTypeScriptView Raw
1import { ClipboardService } from './clipboard-service';
2import { ILogger } from '../common/logger';
3import { MessageService } from '../common/message-service';
4export interface NavigatorClipboard {
5 readText(): Promise<string>;
6 writeText(value: string): Promise<void>;
7}
8export interface PermissionStatus {
9 state: 'granted' | 'prompt' | 'denied';
10}
11export interface NavigatorPermissions {
12 query(options: {
13 name: string;
14 }): Promise<PermissionStatus>;
15}
16export 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//# sourceMappingURL=browser-clipboard-service.d.ts.map
\No newline at end of file