1 | import URI from '../common/uri';
|
2 | import { Disposable } from '../common/disposable';
|
3 | import { CorePreferences } from './core-preferences';
|
4 | import { EncodingService as EncodingService } from '../common/encoding-service';
|
5 | export interface EncodingOverride {
|
6 | parent?: URI;
|
7 | extension?: string;
|
8 | scheme?: string;
|
9 | encoding: string;
|
10 | }
|
11 | export declare class EncodingRegistry {
|
12 | protected readonly encodingOverrides: EncodingOverride[];
|
13 | protected readonly preferences: CorePreferences;
|
14 | protected readonly encodingService: EncodingService;
|
15 | registerOverride(override: EncodingOverride): Disposable;
|
16 | getEncodingForResource(resource: URI, preferredEncoding?: string): string;
|
17 | protected getEncodingOverride(resource: URI): string | undefined;
|
18 | }
|
19 |
|
\ | No newline at end of file |