import { IMarkdownString } from "../../../../base/common/htmlContent.js"; import { IDisposable } from "../../../../base/common/lifecycle.js"; import { IBaseFileStat } from "../../../../platform/files/common/files.js"; import { Event, URI } from "../../../../sessions/sessions.web.main.internal.js"; import { SaveReason } from "../../../common/editor.js"; import { EditorInput } from "../../../common/editor/editorInput.js"; import { IAutoSaveConfiguration, IAutoSaveMode } from "./filesConfigurationService.js"; export declare const IFilesConfigurationService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; export interface IFilesConfigurationService { readonly _serviceBrand: undefined; readonly onDidChangeAutoSaveConfiguration: Event; readonly onDidChangeAutoSaveDisabled: Event; getAutoSaveConfiguration(resourceOrEditor: EditorInput | URI | undefined): IAutoSaveConfiguration; hasShortAutoSaveDelay(resourceOrEditor: EditorInput | URI | undefined): boolean; getAutoSaveMode(resourceOrEditor: EditorInput | URI | undefined, saveReason?: SaveReason): IAutoSaveMode; toggleAutoSave(): Promise; enableAutoSaveAfterShortDelay(resourceOrEditor: EditorInput | URI): IDisposable; disableAutoSave(resourceOrEditor: EditorInput | URI): IDisposable; readonly onDidChangeReadonly: Event; isReadonly(resource: URI, stat?: IBaseFileStat): boolean | IMarkdownString; /** * Passing an IMarkdownString marks the resource read-only and displays it as the reason instead of the default session read-only message. */ updateReadonly(resource: URI, readonly: true | IMarkdownString | false | "toggle" | "reset"): Promise; updateReadonly(resource: URI[], readonly: true | IMarkdownString | false | "reset"): Promise; readonly onDidChangeFilesAssociation: Event; readonly isHotExitEnabled: boolean; readonly hotExitConfiguration: string | undefined; preventSaveConflicts(resource: URI, language?: string): boolean; }