export declare const MIN_TAB_WIDTH = 1; export declare const MAX_TAB_WIDTH = 16; export declare const DEFAULT_TAB_WIDTH = 3; /** * `.editorconfig`-derived formatting options for an LSP `textDocument/formatting` request. * * Both fields are absent when the resolved `.editorconfig` chain does not pin them, so callers * can layer their own fallbacks (content sniffing, project defaults) underneath. Returned values * are clamped to {@link MIN_TAB_WIDTH}..{@link MAX_TAB_WIDTH}. */ export interface EditorConfigFormatting { /** Effective indent width in columns, from `indent_size` or `tab_width`. */ tabSize?: number; /** `true` for `indent_style = space`, `false` for `indent_style = tab` (or `indent_size = tab`). */ insertSpaces?: boolean; } /** * Resolve `.editorconfig` formatting hints for `file` without falling back to any default. * * Used by the LSP format-on-write path so a missing `.editorconfig` declaration falls through * to caller-provided defaults instead of clobbering the file with the renderer's * display tab width (issue #2329). */ export declare function getEditorConfigFormatting(file?: string | null, projectDir?: string | null): EditorConfigFormatting;