export interface JSONResponse { statusCode: number; body: T; } export type RequestResponse = JSONResponse | Buffer | ArrayBuffer; export interface RequestError { statusCode: number; errorDescription: string; shortErrorDescription: string; body: object; error: Error; } export interface ToolContext { name: string; version?: string | number; components?: Omit[]; } export interface ProjectContext { name: string; [key: string]: string | number; } export interface ParticleOptions { baseUrl?: string; clientId?: string; clientSecret?: string; tokenDuration?: number; auth?: string; } export interface SharedRequestOptions { auth?: string; headers?: Record; context?: { tool?: ToolContext; project?: ProjectContext; }; } export interface PaginationMeta { page: number; per_page: number; total_pages: number; total?: number; } export interface OKResponse { ok: boolean; } export interface AgentFile { data: string | Buffer | NodeJS.ReadableStream | Blob; path: string; } export type AgentSanitizedFiles = Record; export interface AgentRequestOptions { uri: string; method: 'get' | 'head' | 'post' | 'put' | 'delete' | 'patch'; auth?: string; headers?: Record; data?: Record | FormData; query?: Record; form?: Record; files?: Record; context?: { tool?: ToolContext; project?: ProjectContext; }; isBuffer?: boolean; } export interface AgentBuildRequestOptions extends Omit { files?: AgentSanitizedFiles; } export type GetHeadOptions = Pick; export type MutateOptions = Omit; //# sourceMappingURL=common.d.ts.map