import { type FormatVersion } from '../format/types.js'; import type { CustomerConfig } from '../types.js'; export interface DiscoveryOptions { /** If set, restrict to one format's extensions only. */ format?: FormatVersion; /** If true, include only files that hash-differ from `.newo/{customer}/hashes.json`. */ changedOnly?: boolean; /** Additional absolute paths to skip. */ ignore?: string[]; } export interface DiscoveredFile { /** Absolute path on disk. */ absPath: string; /** Path relative to the customer root (for display / reports). */ relPath: string; /** Extension (including leading dot). */ ext: string; } /** * Discover script files under a customer's tree. * Respects format when given (else walks all recognized extensions). */ export declare function discoverCustomerFiles(customer: CustomerConfig, opts?: DiscoveryOptions): Promise; /** * Discover files under an arbitrary directory. * Used when the user passes explicit paths to `newo lint some/dir`. */ export declare function discoverFromPath(inputPath: string, opts?: DiscoveryOptions): Promise; /** * Default root for lint invocations with no path arguments - the * `newo_customers/` directory at the cwd. */ export declare function defaultRoot(): string; //# sourceMappingURL=discovery.d.ts.map