/** * Supported ttsc lint configuration filenames in discovery precedence order. */ export declare const TTSC_LINT_CONFIG_FILENAMES: readonly ['lint.config.ts', 'lint.config.mts', 'lint.config.cts', 'lint.config.mjs', 'lint.config.cjs', 'lint.config.js', 'ttsc-lint.config.ts', 'ttsc-lint.config.mts', 'ttsc-lint.config.cts', 'ttsc-lint.config.mjs', 'ttsc-lint.config.cjs', 'ttsc-lint.config.js']; /** Discover actual WordPress source files used to validate lint exclusions. */ export declare function findManagedWordPressSourcePaths(projectDir: string): string[]; /** Asynchronously discover source files for workspace doctor validation. */ export declare function findManagedWordPressSourcePathsAsync(projectDir: string): Promise; /** * Return a diagnostic when the default ttsc project cannot check JavaScript * WordPress sources alongside TypeScript. */ export declare function getTtscJavaScriptCoverageIssue(projectDir: string): string | null; /** * Check whether a lint config enables the WordPress preset and binds its i18n * rule to the expected project text domain. * * @param source TypeScript or JavaScript lint configuration source. * @param expectedTextDomain Project text domain required by the i18n rule. * @param configFilename Discovered filename used to enforce its module format. * @param packageModuleType Nearest package type used for ambiguous .js and * .ts files. Omit it only when validating a format-independent source fixture. * @param managedSourcePaths Actual source files that must remain lint-visible. * @returns Whether the exported config satisfies the managed contract. */ export declare function hasWordPressTtscLintConfigSource(source: string, expectedTextDomain: string, configFilename?: string, packageModuleType?: 'commonjs' | 'module', managedSourcePaths?: readonly string[]): boolean; /** Check whether a valid simple shell chain contains an exact command. */ export declare function hasExactShellCommand(command: unknown, expectedCommand: string): boolean; /** Check whether a valid shell chain runs an exact command and propagates failure. */ export declare function hasPropagatingExactShellCommand(command: unknown, expectedCommand: string): boolean; /** Check whether a top-level shell segment terminates the current shell. */ export declare function hasTopLevelTerminatingShellCommand(command: unknown): boolean; /** Check whether a legacy project-owned command invokes `ttsc --noEmit`. */ export declare function hasTtscNoEmitLintCommand(command: unknown): boolean; /** Check whether an entire legacy lint lane is one managed ttsc command. */ export declare function isStandaloneTtscNoEmitLintCommand(command: unknown): boolean; /** Check whether a project-owned code gate invokes `ttsc check --noEmit`. */ export declare function hasTtscCheckNoEmitCommand(command: unknown): boolean; /** * Insert the managed sync gate before an existing top-level ttsc check while * keeping any earlier fallback chain outside the opaque ttsc segment. */ export declare function prependManagedSyncBeforeTtscCheckNoEmitCommand(command: string, requiredSyncCommand: string): string | null; /** Normalize an existing managed sync segment to the selected package runner. */ export declare function normalizeManagedSyncCheckCommand(command: string, requiredSyncCommand: string): string; /** Check that managed sync runs and propagates failure before the ttsc gate. */ export declare function hasManagedSyncBeforeTtscCheckNoEmitCommand(command: unknown): boolean; /** Check whether any simple shell segment invokes a package script. */ export declare function hasPackageRunScriptInvocation(command: unknown, scriptName: string): boolean; /** Normalize exact managed package-script invocations to selected runners. */ export declare function normalizePackageRunScriptCommands(command: string, requiredCommands: Readonly>): string; /** Remove package-script invocations from a simple failure-propagating chain. */ export declare function removePackageRunScriptInvocations(command: string, scriptName: string): string | null; /** Remove only argument-free package-script commands from a simple chain. */ export declare function removeExactPackageRunScriptCommands(command: string, scriptName: string): string | null; /** Check whether an aggregate command actually runs a package script. */ export declare function hasPackageRunScriptCommand(command: unknown, scriptName: string): boolean; /** Check whether postinstall invokes the managed ttsc lint compatibility file. */ export declare function hasTtscLintCompatPostinstallCommand(command: unknown): boolean;