/** * @file * * Check appClientData and report any errors, along with fixes if possible. */ import { type Patch } from '@knapsack/utils'; import type { KsAppClientDataNoMeta } from '@knapsack/types'; type DoctorErrorName = 'BLOCK_ID_NOT_FOUND' | 'DEMO_ID_NOT_FOUND' | 'NAV_ORPHANED_NO_PARENT' | 'NAV_ITEM_PAGE_MISSING' | 'NAV_PATH_BAD_FORMAT' | 'NAV_ID_BAD_FORMAT' | 'KEY_ID_MISMATCH'; /** * Use `instanceof` errors in our array of returned DoctorErrors to figure out * what's wrong with appClientData */ export declare class DoctorError extends Error { name: DoctorErrorName; message: string; constructor({ name, message }: { name: DoctorErrorName; message: string; }); } /** * Run through appClientData and find any errors that need to be addressed. */ export declare const v4DetectUi: ({ data, }: { data: Partial; }) => { data: Partial; errors: DoctorError[]; fixPatches: Patch[]; }; export {}; //# sourceMappingURL=ui.d.ts.map