import type { KitIndex } from "./types.js"; /** The conventional filename, so callers agree without restating it. */ export declare const KIT_INDEX_FILENAME = "figma-kit-index.json"; /** The JSON Schema (draft-07) for the kit index, as a plain object. */ export declare const kitIndexSchema: { $schema: string; $id: string; title: string; description: string; type: string; required: string[]; additionalProperties: boolean; properties: { fileKey: { type: string; description: string; minLength: number; }; generatedBy: { type: string; description: string; }; sets: { type: string; description: string; additionalProperties: { $ref: string; }; }; standalone: { type: string; description: string; additionalProperties: { type: string; required: string[]; additionalProperties: boolean; properties: { name: { type: string; }; }; }; }; specimens: { type: string; description: string; additionalProperties: { type: string; required: string[]; additionalProperties: boolean; properties: { name: { type: string; }; type: { type: string; description: string; }; }; }; }; }; definitions: { set: { type: string; required: string[]; additionalProperties: boolean; properties: { name: { type: string; }; variants: { type: string; items: { type: string; required: string[]; additionalProperties: boolean; properties: { id: { type: string; description: string; }; name: { type: string; description: string; }; renderId: { type: string; description: string; }; }; }; }; properties: { type: string; description: string; additionalProperties: { type: string; required: string[]; additionalProperties: boolean; properties: { type: { type: string; enum: string[]; description: string; }; default: { type: string[]; description: string; }; }; }; }; instances: { type: string; description: string; items: { type: string; required: string[]; additionalProperties: boolean; properties: { id: { type: string; description: string; }; componentId: { type: string; description: string; }; properties: { type: string; description: string; additionalProperties: { type: string[]; }; }; }; }; }; }; }; }; }; /** Absolute path to the bundled schema file (useful for `$schema` refs). */ export declare const kitIndexSchemaPath: string; export interface ValidationResult { valid: boolean; /** Human-readable errors, empty when valid. */ errors: string[]; } /** Validate an already-parsed value against the kit-index schema. */ export declare function validateKitIndex(value: unknown): ValidationResult; /** Parse and validate kit-index JSON text. */ export declare function parseKitIndex(raw: string, label?: string): KitIndex; /** * Read, parse and validate a kit index from disk. * * @throws Error with a readable message if the file is missing, not JSON, or * fails schema validation. */ export declare function loadKitIndex(path: string): Promise; //# sourceMappingURL=load.d.ts.map