import { HttpClient } from '@coolio/http'; import { RequestBuilder } from './requestBuilder'; import { AnyData } from '../types'; import { RequestBuilderOptions } from '../requestData'; /** * This RequestBuilder adds possibility to form a body for JSON API requests. * Besides filling in query and filter options offered by {@link RequestBuilder}, * one can create a POST, PUT or PATCH request with JSON API-shaped body. */ export declare class CreationalRequestBuilder extends RequestBuilder { type?: string; id?: string; attributes?: object; relationships?: Record; constructor(httpClient: HttpClient, options: RequestBuilderOptions, uri: string); ofType(type: string): this; withId(id: string): this; withAttributes(attributes: object): this; withRelationship(rel?: { name: string; uuid: string; type: string; }): this; /** * Validates the body params and puts it to {@link JsonApiRequestData}. */ protected onBeforeExpect(): void; } //# sourceMappingURL=creationalRequestBuilder.d.ts.map