/** * Helpers for generating temp file paths and IDs. * Uses a ~ prefix so tsc won't match them in glob patterns. */ export declare const GIT_SHORT_HASH_LEN = 7; /** * Generate a unique ID for a temp lint file. * Based on the file basename + current date, styled like a short git commit hash. * e.g. "foo.ts" → "a1b2c3d" */ export declare function lintTempId(basename: string): string; /** * Generate a temp file path for linting. * Uses a ~ prefix with a short hash infix so tsc won't match it in glob * patterns, and avoids collisions when multiple agents lint the same file. * The trailing ~ is omitted because tsc rejects unsupported extensions * (e.g. ".ts~"). The extension must remain exactly ".ts" or ".tsx". * e.g. src/foo.ts → src/~foo.a1b2c3d.ts */ export declare function lintTempPath(filePath: string, id: string): string; /** * Check whether a file path points to a TypeScript file (.ts or .tsx). * Case-insensitive for the extension. */ export declare function isTsFile(filePath: string): boolean;