import { AlintConfig, AlintConfig as AlintConfig$1, AlintConfigItem, ModelSize, PluginDefinition, ProviderDefinition, ProviderType, ProviderType as ProviderType$1, ResolvedStopGateConfig, RunnerConfig, RunnerConfig as RunnerConfig$1, RunnerStatsConfig, SetupConfig as SetupConfig$1, SetupModelDefinition, SetupModelDefinition as SetupModelDefinition$1, StopGateTarget } from "@alint-js/core"; //#region src/plugins/spec.d.ts interface DirectoryPluginSpecifier { directory: string; raw: string; type: 'directory'; } type ParsedPluginSpecifier = DirectoryPluginSpecifier | RegistryPluginSpecifier; interface ParsePluginSpecifierOptions { configFile?: string; } interface RegistryPluginSpecifier { name: string; raw: string; registryPath: string; segments: string[]; type: 'registry'; version: string; } declare function parsePluginSpecifier(value: string, options?: ParsePluginSpecifierOptions): ParsedPluginSpecifier; //#endregion //#region src/config/static.d.ts interface ParsedStaticConfig { groups: ParsedStaticConfigGroup[]; } interface ParsedStaticConfigGroup { item: StaticConfigItem; plugins: StaticPluginReference[]; } interface ParseStaticConfigOptions { configFile?: string; } type StaticConfigInput = readonly StaticConfigInput[] | StaticConfigItem; interface StaticConfigItem extends Omit { plugins?: Record; } interface StaticPluginReference { alias: string; specifier: ParsedPluginSpecifier; } type StaticPluginResolver = (reference: StaticPluginReference) => Promise; interface ToAlintConfigOptions { pluginResolver: StaticPluginResolver; } declare function parseStaticConfig(value: unknown, options?: ParseStaticConfigOptions): ParsedStaticConfig; declare function toAlintConfig(config: ParsedStaticConfig, options: ToAlintConfigOptions): Promise; //#endregion //#region src/config/load.d.ts interface LoadedAlintConfig { config: AlintConfig$1; configFile?: string; } declare function loadAlintConfig(cwd: string, configFile?: string): Promise; declare function loadAlintConfigWithMetadata(cwd: string, configFile?: string): Promise; declare function loadStaticConfig(cwd: string, configFile?: string): Promise; //#endregion //#region src/config/stop-gate-write.d.ts interface SetStopGateConfigOptions { configFile?: string; cwd: string; enabled?: boolean; target?: StopGateTarget; timeoutMs?: number; } declare function setStopGateConfig(options: SetStopGateConfigOptions): Promise<{ config: ResolvedStopGateConfig; configFile: string; }>; //#endregion //#region src/constants/patterns/ignore.d.ts declare const ignorePatternsEslintDefaults: readonly ["**/node_modules/**", ".git/**", "**/.git/**"]; declare const ignorePatternsBuildOutputs: readonly ["**/dist/**", "**/coverage/**", "**/output/**", "**/.output/**", "**/.next/**", "**/.nuxt/**", "**/.svelte-kit/**", "**/.vercel/**"]; declare const ignorePatternsCaches: readonly ["**/.cache/**", "**/.temp/**", "**/.tmp/**", "**/temp/**", "**/tmp/**", "**/.vitepress/cache/**", "**/.vite-inspect/**"]; declare const ignorePatternsGenerated: readonly ["**/CHANGELOG*.md", "**/LICENSE*", "**/*.min.*", "**/__snapshots__/**", "**/components.d.ts"]; declare const ignorePatternsAIAgents: readonly ["**/.agents/**", "**/.claude/**"]; declare const ignorePatternsCommon: readonly ["**/node_modules/**", ".git/**", "**/.git/**", "**/dist/**", "**/coverage/**", "**/output/**", "**/.output/**", "**/.next/**", "**/.nuxt/**", "**/.svelte-kit/**", "**/.vercel/**", "**/.cache/**", "**/.temp/**", "**/.tmp/**", "**/temp/**", "**/tmp/**", "**/.vitepress/cache/**", "**/.vite-inspect/**", "**/CHANGELOG*.md", "**/LICENSE*", "**/*.min.*", "**/__snapshots__/**", "**/components.d.ts"]; //#endregion //#region src/paths.d.ts interface GlobalSetupConfigPathOptions { isMacOS?: boolean; xdgConfig?: string; } declare function getGlobalSetupConfigPath(env?: NodeJS.ProcessEnv, options?: GlobalSetupConfigPathOptions): string; declare function getProjectPluginLockPath(cwd: string): string; declare function getProjectPluginStorePath(cwd: string): string; declare function getProjectSetupConfigPath(cwd: string): string; declare function getStatsDir(env?: NodeJS.ProcessEnv, options?: GlobalSetupConfigPathOptions): string; //#endregion //#region src/plugins/declarative/types.d.ts declare const builtInAgentNames: readonly ["basic-structured", "basic-coding-agent"]; declare const declarativeRuleFilePattern = "**/rule.alint.{toml,yaml,yml,json,jsonc,json5}"; type BuiltInAgentName = typeof builtInAgentNames[number]; interface DeclarativeFinding { confidence?: 'high' | 'low' | 'medium'; filePath?: string; line: number; message: string; suggestion?: string; } interface DeclarativeFindingResponse { findings: DeclarativeFinding[]; } declare const declarativeFindingSchema: import("valibot").SchemaWithPipe, import("valibot").DescriptionAction<"high" | "medium" | "low", "Confidence in this finding. Use exactly \"high\", \"medium\", or \"low\" when confidence is known.">]>, undefined>; readonly filePath: import("valibot").OptionalSchema, import("valibot").DescriptionAction]>, undefined>; readonly line: import("valibot").SchemaWithPipe, import("valibot").DescriptionAction]>; readonly message: import("valibot").SchemaWithPipe, import("valibot").DescriptionAction]>; readonly suggestion: import("valibot").OptionalSchema, import("valibot").DescriptionAction]>, undefined>; }, undefined>, import("valibot").DescriptionAction<{ confidence?: "high" | "medium" | "low" | undefined; filePath?: string | undefined; line: number; message: string; suggestion?: string | undefined; }, "One declarative rule finding.">]>; declare const declarativeFindingResponseSchema: import("valibot").SchemaWithPipe, import("valibot").DescriptionAction<"high" | "medium" | "low", "Confidence in this finding. Use exactly \"high\", \"medium\", or \"low\" when confidence is known.">]>, undefined>; readonly filePath: import("valibot").OptionalSchema, import("valibot").DescriptionAction]>, undefined>; readonly line: import("valibot").SchemaWithPipe, import("valibot").DescriptionAction]>; readonly message: import("valibot").SchemaWithPipe, import("valibot").DescriptionAction]>; readonly suggestion: import("valibot").OptionalSchema, import("valibot").DescriptionAction]>, undefined>; }, undefined>, import("valibot").DescriptionAction<{ confidence?: "high" | "medium" | "low" | undefined; filePath?: string | undefined; line: number; message: string; suggestion?: string | undefined; }, "One declarative rule finding.">]>, undefined>, import("valibot").DescriptionAction<{ confidence?: "high" | "medium" | "low" | undefined; filePath?: string | undefined; line: number; message: string; suggestion?: string | undefined; }[], "All findings for the declarative rule. Return an empty array when there are no issues.">]>; }, undefined>, import("valibot").DescriptionAction<{ findings: { confidence?: "high" | "medium" | "low" | undefined; filePath?: string | undefined; line: number; message: string; suggestion?: string | undefined; }[]; }, "Structured declarative rule findings.">]>; interface DeclarativeRuleDefinition { builtInAgent: BuiltInAgentName; excludeFiles: string[]; filePath: string; includeFiles?: string[]; instruction: string; name: string; } declare function isBuiltInAgentName(value: unknown): value is BuiltInAgentName; //#endregion //#region src/plugins/declarative/parse.d.ts interface LoadDeclarativeRulesOptions { alias: string; root: string; } declare function hasDeclarativeRuleFiles(root: string): Promise; declare function loadDeclarativeRules(options: LoadDeclarativeRulesOptions): Promise; //#endregion //#region src/plugins/declarative/plugin.d.ts interface CreateDeclarativePluginOptions { rules: readonly DeclarativeRuleDefinition[]; } declare function createDeclarativePlugin(options: CreateDeclarativePluginOptions): PluginDefinition; //#endregion //#region src/plugins/declarative/scope.d.ts interface CreateReportScopeOptions { cwd: string; excludeFiles: readonly string[]; includeFiles?: readonly string[]; targetFilePath?: string; } interface ReportScope { canReport: (filePath: string | undefined) => boolean; } declare function createReportScope(options: CreateReportScopeOptions): ReportScope; //#endregion //#region src/plugins/types.d.ts interface DirectoryPluginLockEntry { alias: string; path: string; specifier: string; type: 'directory'; } interface ParsedDirectoryPluginLockEntry { alias: string; cwd: string; lockEntry: DirectoryPluginLockEntry; resolutionError?: unknown; specifier: DirectoryPluginSpecifier; type: 'directory'; } type ParsedPluginLockEntry = ParsedDirectoryPluginLockEntry | ParsedRegistryPluginLockEntry; interface ParsedPluginLockFile { cwd: string; entries: ParsedPluginLockEntry[]; file: PluginLockFile; find: (reference: StaticPluginReference) => ParsedPluginLockEntry | undefined; get: (reference: StaticPluginReference) => ParsedPluginLockEntry; } interface ParsedRegistryPluginLockEntry { alias: string; cwd: string; lockEntry: RegistryPluginLockEntry; resolutionError?: unknown; specifier: RegistryPluginSpecifier; type: 'registry'; } type PluginLockEntry = DirectoryPluginLockEntry | RegistryPluginLockEntry; interface PluginLockFile { plugins: Record; version: 2; } interface RegistryPluginLockEntry { alias: string; entry: string; integrity: string; name: string; registry: string; specifier: string; tarball: string; type: 'registry'; version: string; } interface StaticPluginInstallOptions { configFile?: string; cwd: string; registry?: string; } interface StaticPluginInstallResult { configuredPluginCount: number; installedLocalDirectoryCount: number; installedPackageCount: number; lock: PluginLockFile; } //#endregion //#region src/plugins/install.d.ts declare function installStaticPlugins(options: StaticPluginInstallOptions): Promise; //#endregion //#region src/plugins/lock.d.ts declare function createEmptyPluginLockFile(): PluginLockFile; declare function listMissing(config: ParsedStaticConfig, lock: ParsedPluginLockFile): StaticPluginReference[]; declare function listUnresolved(config: ParsedStaticConfig, lock: ParsedPluginLockFile): Promise; declare function loadPluginLockFile(cwd: string): Promise; declare function parsePluginLockFile(value: unknown, options: { cwd: string; }): ParsedPluginLockFile; declare function writePluginLockFile(cwd: string, lockFile: PluginLockFile): Promise; //#endregion //#region src/setup/types.d.ts interface AcpModelConfig extends SetupModelDefinition$1 { args?: string[]; command: string; cwd?: string; driver: 'acp'; env?: Record; } type ModelConfig = AcpModelConfig | SetupModelDefinition$1; /** Raw setup-file provider. CLI model drivers are materialized before core receives it. */ interface ProviderConfig { endpoint?: string; headers?: Record; id: string; models: ModelConfig[]; type?: ProviderType$1; } interface SetupConfig { providers: ProviderConfig[]; runner?: RunnerConfig$1; version: 1; } declare function isAcpModel(model: ModelConfig): model is AcpModelConfig; declare function modelFromAcpModel(model: AcpModelConfig): SetupModelDefinition$1; //#endregion //#region src/setup/load.d.ts declare const emptySetupConfig: SetupConfig; declare function loadSetupConfig(filePath: string): Promise; declare function mergeSetupConfigs(...configs: SetupConfig[]): SetupConfig; //#endregion //#region src/setup/mutate.d.ts declare function addProviderModels(config: SetupConfig, providerId: string, modelIds: readonly string[]): SetupConfig; declare function pruneProviderModels(config: SetupConfig, providerId: string, remoteModelIds: ReadonlySet): SetupConfig; declare function removeProviderModels(config: SetupConfig, providerId: string, modelIds: ReadonlySet): SetupConfig; declare function replaceSetupProvider(config: SetupConfig, replacement: ProviderConfig): SetupConfig; declare function setProviderEndpoint(config: SetupConfig, providerId: string, endpoint: string): SetupConfig; declare function setProviderHeader(config: SetupConfig, providerId: string, name: string, value: string): SetupConfig; declare function unsetProviderHeader(config: SetupConfig, providerId: string, name: string): SetupConfig; //#endregion //#region src/setup/normalize.d.ts interface AcpProviderConfig { id: string; models: AcpModelConfig[]; } interface ModelAdapterProvider { endpoint: string; headers?: Record; type: ProviderDefinition['type']; } interface SetupModelAdapters { acp: (provider: AcpProviderConfig) => Promise; } /** Normalizes setup-file providers while delegating only model-driven transports. */ declare function normalizeSetupConfig(config: SetupConfig, adapters: SetupModelAdapters): Promise; //#endregion //#region src/setup/toml.d.ts declare function parseSetupConfigToml(toml: string): SetupConfig; declare function stringifySetupConfigToml(config: SetupConfig): string; //#endregion //#region src/setup/write.d.ts declare function writeSetupConfig(filePath: string, config: SetupConfig): Promise; //#endregion export { type AcpModelConfig, type AcpProviderConfig, type AlintConfig, BuiltInAgentName, CreateDeclarativePluginOptions, CreateReportScopeOptions, DeclarativeFinding, DeclarativeFindingResponse, DeclarativeRuleDefinition, type DirectoryPluginLockEntry, type GlobalSetupConfigPathOptions, LoadDeclarativeRulesOptions, type LoadedAlintConfig, type ModelAdapterProvider, type ModelConfig, type ModelSize, type ParseStaticConfigOptions, type ParsedDirectoryPluginLockEntry, type ParsedPluginLockEntry, type ParsedPluginLockFile, type ParsedPluginSpecifier, type ParsedRegistryPluginLockEntry, type ParsedStaticConfig, type ParsedStaticConfigGroup, type PluginLockEntry, type PluginLockFile, type ProviderConfig, type ProviderConfig as ProviderDefinition, type ProviderType, type RegistryPluginLockEntry, ReportScope, type RunnerConfig, type RunnerStatsConfig, type SetStopGateConfigOptions, type SetupConfig, type SetupModelAdapters, type SetupModelDefinition, type StaticConfigInput, type StaticConfigItem, type StaticPluginInstallOptions, type StaticPluginInstallResult, type StaticPluginReference, type StaticPluginResolver, type ToAlintConfigOptions, addProviderModels, builtInAgentNames, createDeclarativePlugin, createEmptyPluginLockFile, createReportScope, declarativeFindingResponseSchema, declarativeFindingSchema, declarativeRuleFilePattern, emptySetupConfig, getGlobalSetupConfigPath, getProjectPluginLockPath, getProjectPluginStorePath, getProjectSetupConfigPath, getStatsDir, hasDeclarativeRuleFiles, ignorePatternsAIAgents, ignorePatternsBuildOutputs, ignorePatternsCaches, ignorePatternsCommon, ignorePatternsEslintDefaults, ignorePatternsGenerated, installStaticPlugins, isAcpModel, isBuiltInAgentName, listMissing, listUnresolved, loadAlintConfig, loadAlintConfigWithMetadata, loadDeclarativeRules, loadPluginLockFile, loadSetupConfig, loadStaticConfig, mergeSetupConfigs, modelFromAcpModel, normalizeSetupConfig, parsePluginLockFile, parsePluginSpecifier, parseSetupConfigToml, parseStaticConfig, pruneProviderModels, removeProviderModels, replaceSetupProvider, setProviderEndpoint, setProviderHeader, setStopGateConfig, stringifySetupConfigToml, toAlintConfig, unsetProviderHeader, writePluginLockFile, writeSetupConfig };