import { a as AppStoreConnectClient } from './index-BKUapQP2.cjs'; interface RuleResult { passed: boolean; message: string; } /** * Rule metadata attached as properties of each rule function. Mirrors * Fastlane precheck's `Rule` class attributes (rule.rb, line ~5+). * * `supportedFields` lists metadata field names this rule applies to. A * `null` value means the rule applies to every field (Fastlane's default * `supported_fields_symbol_set` return of `nil`). */ interface RuleMetadata { key: string; envName: string; friendlyName: string; description: string; supportedFields: readonly string[] | null; } type Rule = ((text: string) => RuleResult) & { metadata: RuleMetadata; }; declare const ALL_RULES: Record; interface PrecheckOptions { client: AppStoreConnectClient; bundleIdentifier: string; includeInAppPurchases?: boolean; rules?: PrecheckRule[]; } interface PrecheckRule { name: string; level: "error" | "warning"; } interface ValidationResult { passed: boolean; errors: ValidationIssue[]; warnings: ValidationIssue[]; } interface ValidationIssue { rule: string; message: string; field?: string; locale?: string; } declare function validateMetadata(options: PrecheckOptions): Promise; declare const index_ALL_RULES: typeof ALL_RULES; type index_PrecheckOptions = PrecheckOptions; type index_PrecheckRule = PrecheckRule; type index_Rule = Rule; type index_RuleResult = RuleResult; type index_ValidationIssue = ValidationIssue; type index_ValidationResult = ValidationResult; declare const index_validateMetadata: typeof validateMetadata; declare namespace index { export { index_ALL_RULES as ALL_RULES, type index_PrecheckOptions as PrecheckOptions, type index_PrecheckRule as PrecheckRule, type index_Rule as Rule, type index_RuleResult as RuleResult, type index_ValidationIssue as ValidationIssue, type index_ValidationResult as ValidationResult, index_validateMetadata as validateMetadata }; } export { ALL_RULES as A, type PrecheckOptions as P, type Rule as R, type ValidationResult as V, type PrecheckRule as a, type ValidationIssue as b, type RuleResult as c, index as i, validateMetadata as v };