import { AxiosResponse } from 'axios'; import { Resource } from '../types/resources'; /** * A schema version. */ export type SchemaVersion = { version_name: string; schema_url: string; }; /** * A schema from the schema catalog */ export type RegisteredSchema = { name: string; schema_type: string; versions: Array; }; /** * A schema associated with a resource. */ export type Schema = { name?: string | null; url?: string | null; version?: string | null; } | null; export interface ValidataError { code: string; description: string; fieldName: string; fieldNumber: number; fieldPosition: number; message: string; name: string; note: string; rowNumber: number; rowPosition: number; tags: Array; } export type SchemaResponseData = Array; export type SchemaResponse = AxiosResponse; /** * Get Schema Catalog */ export declare function getCatalog(): Promise; export declare function findSchemaInCatalog(catalog: Array, schema: Schema): RegisteredSchema | null; export declare function getSchemaDocumentation(name: string): string; export declare function getSchemaValidationUrl(resource: Resource, registeredSchema: RegisteredSchema): string | null; //# sourceMappingURL=schemas.d.ts.map