UNPKG

pxt-core

Version:

Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors

11 lines (10 loc) 1.24 kB
export declare function setProjectId(id: number): void; export declare function uploadFileAsync(fileName: string, fileContent: string): Promise<void>; export declare function getProjectInfoAsync(): Promise<import("@crowdin/crowdin-api-client").ProjectsGroupsModel.Project | import("@crowdin/crowdin-api-client").ProjectsGroupsModel.ProjectSettings>; export declare function getProjectProgressAsync(languages?: string[]): Promise<import("@crowdin/crowdin-api-client").TranslationStatusModel.LanguageProgress[]>; export declare function getDirectoryProgressAsync(directory: string, languages?: string[]): Promise<import("@crowdin/crowdin-api-client").TranslationStatusModel.LanguageProgress[]>; export declare function getFileProgressAsync(file: string, languages?: string[]): Promise<import("@crowdin/crowdin-api-client").TranslationStatusModel.LanguageProgress[]>; export declare function listFilesAsync(directory?: string): Promise<string[]>; export declare function downloadTranslationsAsync(directory?: string): Promise<pxt.Map<string>>; export declare function downloadFileTranslationsAsync(fileName: string): Promise<pxt.Map<string>>; export declare function restoreFileBefore(filename: string, cutoffTime: number): Promise<void>;