import { PopupModal } from './types'; import { FieldRuleContext } from './fieldRules'; export interface ValidationIssue { path: string; message: string; level: 'error' | 'warning'; } /** * Structural validation. Returns issues; empty array = valid. Pass the host's * `fieldRules` / `customFields` to also check the caps and pinned fields they * declare — without them those checks are simply skipped. */ export declare function validatePopup(popup: PopupModal, ctx?: FieldRuleContext): ValidationIssue[]; export declare function isValidPopup(popup: PopupModal, ctx?: FieldRuleContext): boolean;