import type { PickierConfig } from './types'; export declare function formatCode(src: string, cfg: PickierConfig, filePath: string): string; export declare function detectQuoteIssues(line: string, preferred: 'single' | 'double'): number[]; export declare function hasIndentIssue(leading: string, indentSize: number, indentStyle?: 'spaces' | 'tabs', lineContent?: string): boolean; export declare function formatImports(source: string): string; // ── Multi-line template-literal tracking ────────────────────────────────── // The line-based formatter must never touch the *contents* of a template // literal (re-indenting, re-spacing `${` → `$ {`, re-quoting, or trimming would // corrupt the string and break interpolation). These helpers track, line by // line, whether we are inside a template literal's text so such lines can be // emitted verbatim. The scan degrades safely: on exotic input it can only ever // under-format (skip a line), never corrupt one. // `start` records the index of the backtick that opened the template, but only // while scanning the line on which it opened (carried-over contexts from earlier // lines are reset to -1 on entry). It lets callers split an opening line into a // formattable code prefix and a verbatim template tail. declare type TmplCtx = { t: 'tmpl', start: number } | { t: 'interp', braces: number } declare type ImportKind = 'value' | 'type' | 'side-effect';