import * as React from 'react'; import type { CastReadingResponse, GetDailyHexagramResponse, GetHexagramResponse, GetRandomHexagramResponse, LookupHexagramResponse } from '../types/index.js'; type ElementAttrs = Omit, 'children' | 'data'>; export interface RoxyHexagramProps extends ElementAttrs { /** Spec-derived response payload. Pass the raw RoxyAPI response. */ data?: GetHexagramResponse | GetRandomHexagramResponse | LookupHexagramResponse | GetDailyHexagramResponse | CastReadingResponse; className?: string; style?: React.CSSProperties; /** Which I Ching response shape to render: a static hexagram lookup, a cast with changing lines, or the daily hexagram. */ mode?: 'lookup' | 'cast' | 'daily'; /** Endpoint path for built-in self-fetch (uncontrolled mode), e.g. "astrology/natal-chart". The component renders its own input form, fetches with the publishable key, and displays the result. Leave unset for controlled mode (pass `data`). */ endpoint?: string; /** HTTP method for the self-fetch request. Defaults to POST. */ method?: 'GET' | 'POST'; /** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */ publishableKey?: string; /** Override the API origin for self-hosted or proxied deployments. */ baseUrl?: string; /** Override the OpenAPI spec URL the self-fetch form introspects. */ specUrl?: string; /** Response language for self-fetch, forwarded to the API `lang` query parameter (en, tr, de, es, hi, pt, fr, ru). The form never shows a language field; the site owner sets it here. Defaults to English. */ lang?: string; /** Override the self-fetch form submit-button label. Empty derives an outcome-first label from the endpoint (Get reading, Generate, Compare, Cast). */ submitLabel?: string; /** Render a small "Spiritual data by RoxyAPI" credit under a self-fetch result, linking back to RoxyAPI. Off by default; set any value to enable, or "off" to force it off. Never shown in controlled mode. */ attribution?: string; } export declare const RoxyHexagram: React.ForwardRefExoticComponent>; export {}; //# sourceMappingURL=hexagram.d.ts.map