import { Except } from '@quenk/noni/lib/control/error'; import { Mime } from '../../mime'; /** * Parser applied to the body of a response. */ export interface Parser { /** * accepts is the mime type the Parser can process. */ accepts: Mime; /** * apply the Parser to a raw response body. */ apply(raw: Raw): Except; } /** * NoParser does no actual parsing instead just * yielding the data as given. */ export declare class NoParser implements Parser { accepts: string; constructor(accepts?: string); apply(raw: A): Except; }