import { type AnchorRootOptions } from './anchor-root.js'; import type { ValidationResult } from './types.js'; export interface UnifiedValidateOptions extends AnchorRootOptions { /** * Validator for claude-plugin directories. Required when validating plugin * paths. Receives the run's anchor base so the plugin lane reports in the * same coordinate system as every other lane in the run. */ validatePlugin?: (path: string, options: AnchorRootOptions) => Promise; } /** * Unified validation function that automatically detects resource type * and routes to the appropriate validator * * @param resourcePath - Path to the resource to validate (file or directory) * @param opts - Optional injectable validators (e.g. validatePlugin from claude-marketplace) * @returns ValidationResult with type-specific validation * * @example * ```typescript * // Validates a marketplace directory * const result = await validate('/path/to/marketplace'); * * // Validates a plugin directory (requires injectable validatePlugin) * const result = await validate('/path/to/plugin', { validatePlugin }); * * // Validates a registry file * const result = await validate('/path/to/installed_plugins.json'); * ``` */ export declare function validate(resourcePath: string, opts?: UnifiedValidateOptions): Promise; //# sourceMappingURL=unified-validator.d.ts.map