import { Except } from '@quenk/noni/lib/control/error'; import { Mime } from '../../mime'; /** * Transform shapes a write request's body before sending it * to the server. */ export interface Transform { /** * type of content being sent. * * This must be a valid MIME type. */ type: Mime; /** * apply the Transform to a raw request body. */ apply(raw: A): Except; } /** * NoTransform does not modifiy the data in any way. * * Defaults to text/html mime type. */ export declare class NoTransform implements Transform { type: string; constructor(type?: string); apply(body: A): Except; }