import type { JSONSchemaType } from 'ajv'; import { type PieceFrontmatter } from '../pieces/index.js'; declare function pieceFrontMatterFromPrompt(apiKey: string, schema: JSONSchemaType, prompt: string, files?: Array): Promise<{ [k: string]: import("../index.js").PieceFrontMatterValue; }>; declare function validateApiKey(apiKey: string): Promise<{ ok: true; } | { ok: false; reason: string; }>; export { pieceFrontMatterFromPrompt, validateApiKey };