ts-budgie
Version:
Converts TypeScript code to Budgie.
23 lines (22 loc) • 681 B
TypeScript
import { BudgieLine } from "../output/budgieLine";
/**
* Indents Budgie lines using their command metadata.
*/
export declare class LineIndenter {
private readonly commandsBag;
constructor();
/**
* Indents Budgie lines using their command metadata.
*
* @param lines Budgie and literal string lines.
* @returns Indented versions of the lines.
*/
indent(lines: (string | BudgieLine)[]): string[];
/**
* Computes how a line's command changes indentation.
*
* @param line Output Budgie line.
* @returns How the line's command changes indentation.
*/
private getIndentationChanges;
}