import type { RegistryFeatureType } from '../src-types' export interface ChangedFile { status: string path: string previousPath?: string } export interface PullRequestEvent { pull_request?: { base?: { ref?: string sha?: string } head?: { sha?: string } } } export interface FeatureMetadata { kind: RegistryFeatureType properties: Set name?: string displayName?: string } export interface CheckContext { baseRef?: string changedFiles: ChangedFile[] changedPaths: string[] readBaseFile: (path: string) => string } export interface CheckResult { errors?: string[] warnings?: string[] } export interface CheckRule { name: string check: (context: CheckContext) => CheckResult }