export type Choice = { type: "choice"; instructions: string; criteria: Record }; export type Noul = { type: "noul"; instructions: string; criteria?: { true: string; false: string } }; export type Score = { type: "score"; instructions: string; criteria: string[] }; export type Question = Choice | Noul | Score; export interface Answer { type: "choice" | "noul" | "score"; probabilities: Record; confidence: number; choice?: string; noul?: number; score?: number; legend?: Record; value: string | number; top: string } export declare class GyeolError extends Error { status: number; detail: string } export declare class Gyeol { constructor(opts?: { apiKey?: string | null; baseUrl?: string; timeoutMs?: number; fetch?: typeof fetch }); static choice(instructions: string, criteria: Record | string[]): Choice; static noul(instructions: string, opts?: { true?: string; false?: string }): Noul; static score(instructions: string, levels: string[]): Score; decide(state: string | object, questions: Record, opts?: { model?: string }): Promise>; me(): Promise; } export default Gyeol;