1 | import type { CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition, SchemaMap, AnySchema } from "../../types";
|
2 | import type { KeywordCxt } from "../../compile/validate";
|
3 | export type PropertyDependencies = {
|
4 | [K in string]?: string[];
|
5 | };
|
6 | export interface DependenciesErrorParams {
|
7 | property: string;
|
8 | missingProperty: string;
|
9 | depsCount: number;
|
10 | deps: string;
|
11 | }
|
12 | export type DependenciesError = ErrorObject<"dependencies", DependenciesErrorParams, {
|
13 | [K in string]?: string[] | AnySchema;
|
14 | }>;
|
15 | export declare const error: KeywordErrorDefinition;
|
16 | declare const def: CodeKeywordDefinition;
|
17 | export declare function validatePropertyDeps(cxt: KeywordCxt, propertyDeps?: {
|
18 | [K in string]?: string[];
|
19 | }): void;
|
20 | export declare function validateSchemaDeps(cxt: KeywordCxt, schemaDeps?: SchemaMap): void;
|
21 | export default def;
|