/** Header the API uses to scope a request to a (sub-)organization. */ export declare const TENANT_ORG_HEADER = "X-Tenant-Org-Id"; export type QueryValue = string | number | boolean | undefined; export interface ApiRequestOptions { method?: 'GET' | 'POST'; query?: Record; body?: unknown; /** Sent as X-Tenant-Org-Id — targets a sub-organization. */ tenantOrgId?: string; /** Value of the --api-key flag, if given. */ apiKey?: string; } /** * Carries the same fields as the SDK's `BitmovinError` so `BaseCommand.catch` * renders REST failures exactly like SDK failures. `tenantOrgId` is added so * the 403 hint can name the organization the request was scoped to, which is * not necessarily the one in the config file. */ export declare class BitmovinRestError extends Error { readonly httpStatusCode: number; readonly errorCode?: number | string; readonly developerMessage?: string; readonly requestId?: string; readonly tenantOrgId?: string; constructor(args: { message: string; httpStatusCode: number; errorCode?: number | string; developerMessage?: string; requestId?: string; tenantOrgId?: string; }); } /** * Performs a request against the Bitmovin API and unwraps the standard * `{data: {result}}` envelope. Errors become {@link BitmovinRestError}. */ export declare function apiRequest(path: string, options?: ApiRequestOptions): Promise; //# sourceMappingURL=rest.d.ts.map