///
import { Arguments, CodedError } from '@kui-shell/core';
import { KubeOptions, Status } from '@kui-shell/plugin-kubectl-core';
import URLFormatter from './url';
import { FetchedFile, ReturnedError } from '../../../lib/util/fetch-file';
type WithErrors = {
errors: CodedError[];
ok: (string | Buffer | object)[];
okIndices: number[];
errorIndices: number[];
};
/** See if the given error message is a Kubernetes Status object */
export declare function tryParseAsStatus(code: number | string, error: string): ReturnedError | Status;
export default function handleErrors(responses: FetchedFile[], formatUrl: URLFormatter, kind: string, args: Pick, 'REPL' | 'parsedOptions'>, returnErrors?: boolean): Promise;
export {};