///
import { Readable, Writable } from "stream";
export declare class ODataStream {
stream: any;
contentType: string;
constructor(contentType: string);
constructor(stream: any, contentType?: string);
pipe(destination: Writable): Promise;
write(source: Readable): Promise;
}
export interface IODataResult {
"@odata.context"?: string;
"@odata.count"?: number;
value?: T[];
[x: string]: any;
}
export declare class ODataResult {
statusCode: number;
body: IODataResult & T;
elementType: Function;
contentType: string;
stream?: any;
constructor(statusCode: number, contentType?: string, result?: any);
static Created: (result: any, contentType?: string) => Promise;
static Ok: (result: any, contentType?: string) => Promise;
static NoContent: (result?: any, contentType?: string) => Promise;
}