import { HeaderValue } from '../models'; import RESTClient, { ConsumerDecorator } from '../rest-client'; export declare type ClientDecorator = (target: T) => T; export declare type CompositeDecorator = ConsumerDecorator & ClientDecorator; /** * Set the base URL of REST resource * @param url - base URL * * @Annotation * @publicApi */ export declare function BaseUrl(url: string): ClientDecorator; /** * Set default headers for every method of the RESTClient * @param headers - default headers in a key-value pair * @param overlap - overlap all headers * * @Annotation * @publicApi * @deprecated use `@Headers()` instead */ export declare function DefaultHeaders(headers: Record, overlap?: boolean): ClientDecorator; /** * Set **Content-Type** in default headers to **application/x-www-form-urlencoded** * * @Annotation * @publicApi */ export declare function HFormUrlEncoded(): CompositeDecorator; /** * Set **Content-Type** in default headers to **application/json** * * @Annotation * @publicApi */ export declare function HJson(): CompositeDecorator; /** * Will consume `RESTClient.getAuthenticationHeader` * * @Annotation * @publicApi */ export declare function Authentication(requireAuthentication?: boolean): CompositeDecorator;