import { CliCredentials } from './config'; type NestErrorBody = { statusCode?: number; message?: string | string[]; error?: string; }; export declare class ApiError extends Error { readonly status: number; readonly body: NestErrorBody; constructor(status: number, body: NestErrorBody); private static messages; render(): string; } export declare class HelixApi { private readonly baseUrl; private token; constructor(baseUrl: string, token?: string | null); setToken(token: string): void; request(method: string, path: string, body?: unknown): Promise; requestItem(method: string, path: string, body?: unknown): Promise; postMultipart(path: string, form: FormData): Promise; sendMultipart(method: string, path: string, form: FormData): Promise; static forCredentials(creds: CliCredentials): HelixApi; } export declare function uploadToTicket(url: string, body: Buffer, contentType: string, cacheControl?: string): Promise; export {};