import type { ProjectPackageJson, RetrofitInitBlockTarget } from './cli-init-types.js'; export declare function getManagedLintConfigOutputFilename(existingLintConfigPath: string | null, previousManagedLintConfig: boolean): string; export declare function findManagedLintConfigOutputConflict(projectDir: string, existingLintConfigPath: string | null, previousManagedLintConfig: boolean): string | null; /** Find the first ttsc lint config using the shared discovery precedence. */ export declare function findTtscLintConfigPath(projectDir: string): string | null; /** * Check whether a readable config enables the WordPress preset for a project. */ export declare function hasWordPressTtscLintConfig(configPath: string | null, expectedTextDomain: string): boolean; /** Build the canonical WordPress-aware lint config for an existing workspace. */ export declare function buildWordPressTtscLintConfigSource(textDomain: string): string; /** Recreate the exact WordPress lint config emitted by the previous template. */ export declare function buildPreviousManagedWordPressTtscLintConfigSource(textDomain: string): string; /** Check whether a lint config is the untouched preceding managed template. */ export declare function hasPreviousManagedWordPressTtscLintConfig(configPath: string | null, expectedTextDomain: string): boolean; /** Check whether tsconfig.json is the untouched preceding managed template. */ export declare function hasPreviousManagedTtsconfig(projectDir: string): boolean; /** Read the current managed tsconfig source used for a safe baseline upgrade. */ export declare function getCurrentManagedTtsconfigSource(): string; /** * Resolve a retrofit text domain from wpTypia metadata, block metadata, * package name, the first block slug, then the project directory name. * Conflicting block metadata fails closed until the project supplies one * explicit wpTypia text domain or aligns its block metadata. */ export declare function resolveRetrofitTextDomain(options: { blockTargets: readonly RetrofitInitBlockTarget[]; packageJson: ProjectPackageJson | null; projectDir: string; }): string; /** * Generate the `scripts/block-config.ts` source for retrofit block targets. * * @param targets Existing block targets detected by the init plan. * @returns Complete TypeScript source for the generated block config helper. */ export declare function buildRetrofitBlockConfigSource(targets: RetrofitInitBlockTarget[]): string; /** * Generate the `scripts/sync-types-to-block-json.ts` helper source. * * @returns Complete TypeScript source for the metadata sync helper. */ export declare function buildRetrofitSyncTypesScriptSource(): string; /** Read the canonical managed ttsc lint compatibility helper source. */ export declare function getTtscLintCompatSource(): string; /** Read the exact helper emitted by the preceding managed release. */ export declare function getPreviousTtscLintCompatSource(): string; export interface TtscLintCompatFileState { conflictPath: string | null; current: boolean; } /** Inspect the managed compatibility helper with one project-file read. */ export declare function inspectTtscLintCompatFile(projectDir: string): TtscLintCompatFileState; /** Check whether the generated ttsc compatibility helper is current. */ export declare function hasCurrentTtscLintCompatFile(projectDir: string): boolean; /** Find a project-owned compatibility helper that init must not overwrite. */ export declare function findTtscLintCompatOutputConflict(projectDir: string): string | null; /** * Generate the `scripts/sync-project.ts` orchestration helper source. * * @returns Complete TypeScript source for the project sync entrypoint. */ export declare function buildRetrofitSyncProjectScriptSource(): string; /** * Build the helper file source map written by `wp-typia init --apply`. * * @param blockTargets Existing block targets detected by the init plan. * @returns Relative helper file paths mapped to their generated source. */ export declare function buildRetrofitHelperFiles(blockTargets: RetrofitInitBlockTarget[], options?: { projectDir: string; textDomain: string; }): Record; /** * Build only the managed code-quality files that are safe to add to an * official workspace. Exact preceding lint and tsconfig templates are * upgraded; all project-owned variants remain untouched. */ export declare function buildOfficialWorkspaceLintFiles(options: { projectDir: string; textDomain: string; }): Record;