import type { ArkValidator } from './schema/index.js'; type RequestArgs = { method: 'GET' | 'POST' | 'DELETE'; path: string; token?: string; body?: unknown; } | { method: 'GET' | 'POST' | 'DELETE'; url: string; token?: string; body?: unknown; }; export declare function apiRequest(registry: string, args: RequestArgs): Promise; export declare function apiRequest(registry: string, args: RequestArgs, schema: ArkValidator): Promise; type FormRequestArgs = { method: 'POST'; path: string; token?: string; form: FormData; } | { method: 'POST'; url: string; token?: string; form: FormData; }; export declare function apiRequestForm(registry: string, args: FormRequestArgs): Promise; export declare function apiRequestForm(registry: string, args: FormRequestArgs, schema: ArkValidator): Promise; export declare function downloadZip(registry: string, args: { slug: string; version?: string; }): Promise>; export {};