import type * as monaco from 'monaco-editor';
export interface BranchFile {
    appID: string;
    branch: string;
    path: string;
}
/**
 * Take a Monaco model URI, and covert it to a path in the local repo.
 * If the URI does not reference a valid local path, null is returned.
 * No checks are performed on whether or not the referenced file exists.
 */
export declare const uriToPath: (uri: monaco.Uri) => BranchFile | null;
/**
 * Given a local filename, return a monaco Uri.
 * @param path The local path, e.g. schema.xml or mobile/main.js
 */
export declare function pathToUri(path: BranchFile, _monaco: typeof monaco): monaco.Uri;
/**
 * Given a path or filename return a language based on the file extension. Optionally accepts a file_length
 * parameter (1 char = 2 bytes) which, if too large, will result in 'text' being returned regardless of
 * language
 */
export declare function getLanguageFromFile(file: string, file_length?: number): "css" | "markdown" | "python" | "text" | "typescript" | "json" | "javascript" | "xml" | "jxml" | "html" | "yaml" | "handlebars";
