//#region src/options.d.ts /** caller-facing options for {@link format}; every field has a default. */ interface KemptOptions { /** * spaces per indent level when {@link useTabs} is false, and the column a tab counts as when measuring fit. * defaults to 2. */ indentWidth?: number; /** the column the formatter tries to keep lines within. defaults to 80. */ lineWidth?: number; /** indent with tabs rather than spaces. defaults to true. */ useTabs?: boolean; } //#endregion //#region src/index.d.ts /** * formats JavaScript/TypeScript source code, canonicalising layout while leaving token contents untouched. * * the input is assumed to be valid and not to rely on automatic semicolon insertion. * * @param source the source text to format * @param options layout options; sensible defaults are used for any omitted * @returns the formatted source, ending in a single trailing newline (or empty for empty input) */ declare const format: (source: string, options?: KemptOptions) => string; //#endregion export { type KemptOptions, format };