import type { FC } from 'react'; import type { AsyncStatus } from '../../../cargo-hold-async'; import type { WithMediaQueryInnerProps, WithMediaQueryStyleProps } from '../../../fsresponsive'; import type { OpaqueExtendableData, OpaqueHeaders } from '../../common/models/unique-props'; import type { WithConditionalProps, WithDataTextProps, WithDataUnknownProps } from '../../frameworks/property-binding'; import type { ExtendableData } from '../../hooks/parse-data-record.hook'; import type { BaseContainerProps, StandardContainerProps } from '../../models'; declare const CONTENT_TYPE: { json: string; formData: string; }; declare type HeaderData = Record; export interface PreStandardizedEndpointZoneProps extends BaseContainerProps { url: string; useProxy?: boolean; body?: ExtendableData | OpaqueExtendableData; requestOn: 'load' | 'submit' | 'update'; method: 'DELETE' | 'GET' | 'HEAD' | 'OPTIONS' | 'PATCH' | 'POST' | 'PUT'; headers?: HeaderData | OpaqueHeaders; contentType: keyof typeof CONTENT_TYPE; } export declare type BaseEndpointZoneProps = WithMediaQueryInnerProps>; export declare type EndpointZoneProps = WithConditionalProps & WithDataUnknownProps, 'url'>, 'body'>; export declare type EndpointZoneProvidedDql = { url: string | undefined; loadingState: 'failure'; error: unknown; data?: undefined; } | { url: string | undefined; loadingState: 'success'; data: unknown; error?: undefined; } | { url: string | undefined; loadingState: Exclude; data?: undefined; error?: undefined; }; export declare const EndpointZone: FC; export default EndpointZone;