import { VSBuffer, VSBufferReadable, VSBufferReadableStream } from "../../../../base/common/buffer.js"; import { URI } from "../../../../base/common/uri.js"; import { IWriteFileOptions, IFileStatWithMetadata } from "../../../../platform/files/common/files.js"; export declare const IElevatedFileService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; export interface IElevatedFileService { readonly _serviceBrand: undefined; /** * Whether saving elevated is supported for the provided resource. */ isSupported(resource: URI): boolean; /** * Attempts to write to the target resource elevated. This may bring * up a dialog to ask for admin username / password. */ writeFileElevated(resource: URI, value: VSBuffer | VSBufferReadable | VSBufferReadableStream, options?: IWriteFileOptions): Promise; }