import { HeximalElement } from '@heximal/element'; /** * Fetches a resource over the network with fetch() API. * * Fetches are run automatically upon creating and when the `url`, `mode`, or * `type` properties change. * * The result of the fetch is available in the `value` and `error` properties. * They hold the result of the last completed or errored fetch. * * A difference from the fetch() API is that if the fetch completes with an HTTP * error status, the fetch will throw an error and the `error` property will be * set to the error. * * When the fetch is pending, the `value` and `error` properties will hold the * result of the previous fetch. * * The `url`, `mode`, `type`, `state`, `value`, and `error` properties are * backed by signals, so any signals that read them will be tracked as * dependents of them. */ export declare class HeximalFetch extends HeximalElement { #private; static styles: import("lit").CSSResult; /** * The URL to fetch a resource. * * Setting this property causes a fetch() from the URL. */ accessor url: string | undefined; /** * The fetch mode to use: "cors", "no-cors", or "same-origin". * See the fetch() documents for more information. * * Setting this property will re-fetch the resource. */ accessor mode: RequestMode | undefined; /** * The type of the response to fetch: "text", "json", "blob", "arrayBuffer", * "formData", or "stream". * * Defaults to "text". * * Setting this property will re-fetch the resource. */ accessor type: 'text' | 'json' | 'blob' | 'arrayBuffer' | 'formData' | 'stream'; /** * The current status of the fetch, which is one of 'initial', * 'pending', 'complete', or 'error'. */ get status(): import("./internal/async-computed.js").AsyncComputedStatus; get value(): unknown; get error(): unknown; get complete(): Promise; connectedCallback(): void; } declare global { interface HTMLElementTagNameMap { 'h-fetch': HeximalFetch; } } //# sourceMappingURL=fetch.d.ts.map