import { IActionContext } from '@microsoft/vscode-azext-utils'; import { ParsedSite } from './SiteClient'; export interface ISiteFile { data: string; etag: string; } export interface ISiteFileMetadata { mime: string; name: string; path: string; href: string; } /** * @param path - Do not include leading slash. Include trailing slash if path represents a folder. */ export declare function createSiteFilesUrl(site: ParsedSite, path: string, href?: string): string; export declare function getFile(context: IActionContext, site: ParsedSite, url: string): Promise; export declare function listFiles(context: IActionContext, site: ParsedSite, url: string): Promise; /** * Overwrites or creates a file. The etag passed in may be `undefined` if the file is being created * Returns the latest etag of the updated file */ export declare function putFile(context: IActionContext, site: ParsedSite, data: string | ArrayBuffer, url: string, etag: string | undefined): Promise;