import { LitElement } from 'lit'; /** * Schema-driven form. Pass `endpoint` (e.g. "vedic-astrology/birth-chart"). * The form introspects the cached OpenAPI spec, slots a roxy-location-search * when latitude+longitude+timezone fields are present, and emits a * `roxy-submit` CustomEvent with the validated payload on submit. The caller * decides what to do (call the SDK, render a chart, navigate). * * At runtime the component fetches the OpenAPI spec (its `spec-url`, default * /api/v2/openapi.json) and builds the fields from the operation's request * schema: types, enums, required flags, and property order all come from the * spec, so a new endpoint gets a working form with no per-endpoint code. */ export declare class RoxyEndpointForm extends LitElement { static styles: import("lit").CSSResult[]; endpoint: string; method: 'GET' | 'POST'; specUrl: string; submitLabel: string; /** Prefill values, keyed by field name. Used by `remember` mode to restore the last submission. JS property only. */ initialValues?: Record; private fields; private values; private loaded; private specError; connectedCallback(): void; private loadSchema; private retryLoadSchema; private resolve; private fieldType; private setValue; /** True when the fields in `group` (or the flat top level) carry latitude+longitude+timezone, so a location-search can autofill them. */ private groupHasLocation; /** Location-select handler bound to a group: fills that group's lat/lng/timezone keys (flat top level when group is undefined). */ private onLocationFor; private onSubmit; render(): import("lit").TemplateResult<1>; private htmlType; private coerce; } declare global { interface HTMLElementTagNameMap { 'roxy-endpoint-form': RoxyEndpointForm; } } //# sourceMappingURL=endpoint-form.d.ts.map