/**
 * limitString limits the given string to N characters, optionally adding an
 * ellipsis (…) at the end.
 * @param s the string to limit
 * @param n the number of characters to limit the string to
 * @param ellipsis whether or not to add an ellipsis (…) when string is cut off.
 */
export declare function limitString(s: string, n: number, ellipsis: boolean): string;
/**
 * scrollIntoView checks if the selected element is not in view of the list
 * element, adjusting the scroll of the list element as needed.
 * @param listElement the list element.
 * @param selectedElement the selected element.
 */
export declare function scrollIntoView(listElement?: HTMLElement, selectedElement?: HTMLElement): void;
/** The LSP mode used for plain text files and all other unrecognized files. */
export declare const PLAINTEXT_MODE = "plaintext";
/**
 * getModeFromPath returns the LSP mode for the provided file path. If the file path does not correspond to any
 * known mode, 'plaintext' is returned.
 */
export declare function getModeFromPath(path: string): string;
export declare function getPathExtension(path: string): string;
//# sourceMappingURL=index.d.ts.map