import { Segment } from '../paths'; import { NodeSchema, RuleIssue } from './define'; /** An issue of `findPropIssues`: the path stays a segment array, so a key is never re-split on `.` or `[`. */ export type PropIssue = { path: Segment[]; message: string; }; /** * Validates the whole props object. With `only` (the paths that were written, as segment arrays), keeps the issues * at, inside or above a written path, or whose related keys (e.g. `borderStyle` for a border width) were written. */ export declare function findPropIssues(schema: NodeSchema, props: Record, only?: readonly (readonly Segment[])[]): PropIssue[]; /** * Validates the whole props object. With `only` (the written paths), keeps the issues at, inside or above a written * path, or whose related keys (e.g. `borderStyle` for a border width) were written. Give each written path as a * segment array (`['sx', 'md', 'color']`) whenever its keys come from data: a dotted string is split on `.` and `[`, * so a key such as `'md.color'` would no longer match its own issue. */ export declare function checkProps(schema: NodeSchema, props: Record, options?: { only?: readonly (string | readonly Segment[])[]; }): RuleIssue[];