import { Message } from '@autorest/extension-base'; export interface TspWriteFileOptions { /** * @param filename Name of the file. */ filename: string; /** * @param content Content of the file. */ content: string; /** * @param sourceMap Source map that can be used to trace back source position in case of error. */ sourceMap?: string; /** * @param artifactType Artifact type */ artifactType?: string; } export interface TspHost { protectFiles(path: string): Promise; readFile(filename: string): Promise; getValue(key: string): Promise; listInputs(artifactType?: string): Promise>; writeFile({ filename, content, sourceMap, artifactType }: TspWriteFileOptions): void; message(message: Message): void; UpdateConfigurationFile(filename: string, content: string): void; GetConfigurationFile(filename: string): Promise; } export declare class TspHostImpl implements TspHost { configurations: Record; constructor(configurations: Record); protectFiles(path: string): Promise; readFile(filename: string): Promise; getValue(key: string): Promise; listInputs(artifactType?: string): Promise>; writeFile({ filename, content, sourceMap, artifactType }: TspWriteFileOptions): void; UpdateConfigurationFile(filename: string, content: string): void; GetConfigurationFile(filename: string): Promise; message(message: Message): void; } //# sourceMappingURL=tsp-host.d.ts.map