import { Event } from "../../../base/common/event.js"; import { URI } from "../../../base/common/uri.js"; import { IConfigurationValue, ConfigurationTarget } from "../../../platform/configuration/common/configuration.js"; import { IPosition } from "../core/position.js"; import { ITextResourceConfigurationChangeEvent } from "./textResourceConfiguration.js"; export declare const ITextResourceConfigurationService: import("../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; export interface ITextResourceConfigurationService { readonly _serviceBrand: undefined; /** * Event that fires when the configuration changes. */ readonly onDidChangeConfiguration: Event; /** * Fetches the value of the section for the given resource by applying language overrides. * Value can be of native type or an object keyed off the section name. * * @param resource - Resource for which the configuration has to be fetched. * @param position - Position in the resource for which configuration has to be fetched. * @param section - Section of the configuration. * */ getValue(resource: URI | undefined, section?: string): T; getValue(resource: URI | undefined, position?: IPosition, section?: string): T; /** * Inspects the values of the section for the given resource by applying language overrides. * * @param resource - Resource for which the configuration has to be fetched. * @param position - Position in the resource for which configuration has to be fetched. * @param section - Section of the configuration. * */ inspect(resource: URI | undefined, position: IPosition | null, section: string): IConfigurationValue>; /** * Update the configuration value for the given resource at the effective location. * * - If configurationTarget is not specified, target will be derived by checking where the configuration is defined. * - If the language overrides for the give resource contains the configuration, then it is updated. * * @param resource Resource for which the configuration has to be updated * @param key Configuration key * @param value Configuration value * @param configurationTarget Optional target into which the configuration has to be updated. * If not specified, target will be derived by checking where the configuration is defined. */ updateValue(resource: URI | undefined, key: string, value: unknown, configurationTarget?: ConfigurationTarget): Promise; } export declare const ITextResourcePropertiesService: import("../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; export interface ITextResourcePropertiesService { readonly _serviceBrand: undefined; /** * Returns the End of Line characters for the given resource */ getEOL(resource: URI, language?: string): string; }