import { Effect, Option, type PlatformError } from "effect"; import { completeMerge, ensureArrayItemsAtPath, initialSettingsState, isRecord, parseSettings, SettingsMergeResult } from "../../config/jsonc-settings.ts"; import { firstExisting, report, type ToolFileContext, type ToolIgnoreReport } from "../common.ts"; export { completeMerge, ensureArrayItemsAtPath, firstExisting, initialSettingsState, isRecord, parseSettings, report, SettingsMergeResult, type ToolFileContext, type ToolIgnoreReport }; export { VENDOR_DIR, VENDOR_GLOB, hasVendorPattern, mergeManagedIgnoreSection, packageHasDependency } from "../common.ts"; export interface OptionalFile { readonly absolutePath: string; readonly content: string; } export interface MonorepoToolDefinition { readonly category: string; readonly doctor: (context: ToolFileContext, cwd: string) => Effect.Effect; readonly name: string; readonly refresh?: (context: ToolFileContext, cwd: string) => Effect.Effect, PlatformError.PlatformError>; } export interface MonorepoToolCategory { readonly name: string; readonly tools: ReadonlyArray; } export declare const optionalFile: (context: ToolFileContext, cwd: string, relativePath: string) => Effect.Effect | Option.Some, PlatformError.PlatformError, never>; export declare const firstExistingFile: (context: ToolFileContext, cwd: string, candidates: ReadonlyArray) => Effect.Effect, PlatformError.PlatformError, never>; export declare const writeMerged: (context: ToolFileContext, absolutePath: string, merged: SettingsMergeResult) => Effect.Effect, PlatformError.PlatformError, never>; export declare const rootPackageJson: (context: ToolFileContext, cwd: string) => Effect.Effect>, PlatformError.PlatformError, never>; export declare const rootPackageHasWorkspaces: (context: ToolFileContext, cwd: string) => Effect.Effect; export declare const packageManagerName: (context: ToolFileContext, cwd: string) => Effect.Effect, PlatformError.PlatformError, never>; export declare const packageWorkspacesIgnoreVendor: (context: ToolFileContext, cwd: string, vendorExclude: string) => Effect.Effect; export declare const yamlPathHasAnyArrayValue: (text: string, path: ReadonlyArray, expected: ReadonlyArray) => boolean; export declare const mergeYamlArrayItemsAtPath: ({ fallback, items, path, requireExistingArray, text }: { readonly fallback?: ReadonlyArray; readonly items: ReadonlyArray; readonly path: ReadonlyArray; readonly requireExistingArray?: boolean; readonly text: string; }) => SettingsMergeResult; export declare const jsoncConfigReport: ({ config, ignored, missingMessage, tool }: { readonly config: OptionalFile; readonly ignored: boolean; readonly missingMessage: string; readonly tool: string; }) => ToolIgnoreReport; export declare const absentReport: (tool: string) => ToolIgnoreReport; export declare const unsupportedReport: ({ configPath, detected, message, tool }: { readonly configPath?: string; readonly detected?: boolean; readonly message: string; readonly tool: string; }) => ToolIgnoreReport; export declare const configuredOrVisibleReport: ({ configPath, ignored, message, tool }: { readonly configPath: string; readonly ignored: boolean; readonly message: string; readonly tool: string; }) => ToolIgnoreReport; export declare const doctorSimpleConfig: ({ configuredMessage, context, cwd, paths, tool, visibleMessage }: { readonly configuredMessage: string; readonly context: ToolFileContext; readonly cwd: string; readonly paths: ReadonlyArray; readonly tool: string; readonly visibleMessage: string; }) => Effect.Effect; //# sourceMappingURL=common.d.ts.map