export type ExtractDataType<T> = T extends {
    data?: infer D;
} ? NonNullable<D> : never;
export declare function extractData<T extends {
    data?: unknown;
}>(responsePromise: Promise<T>): Promise<ExtractDataType<T>>;
/**
 * Parse an NDJSON HTTP response body into an async generator of parsed JSON objects.
 * The generator yields one parsed object per line. Empty lines are skipped.
 */
export declare function parseNdjsonStream<T = unknown>(response: Response): AsyncGenerator<T>;
export declare function parseResponseBody(response: Response): Promise<unknown>;
export declare function isNetworkError(error: unknown): boolean;
