export declare class ArkServiceError extends Error { readonly status: number; readonly body: unknown; constructor(status: number, body: unknown, message: string); } /** Error especĂ­fico cuando un request excede el timeout. */ export declare class ArkTimeoutError extends ArkServiceError { constructor(timeout: number); } export interface RequestOptions { headers?: Record; timeout?: number; } export interface ServiceContext { get(path: string, options?: RequestOptions): Promise; post(path: string, body: unknown, options?: RequestOptions): Promise; put(path: string, body: unknown, options?: RequestOptions): Promise; patch(path: string, body: unknown, options?: RequestOptions): Promise; delete(path: string, options?: RequestOptions): Promise; } export interface ServiceOptions { baseUrl: string; timeout?: number; headers?: Record; } export type ServiceDefinition = { [key: string]: (this: ServiceContext, ...args: any[]) => Promise; }; export type ServiceInstance = { [K in keyof T]: T[K]; }; export declare function createService(options: ServiceOptions, definition: T): ServiceInstance; //# sourceMappingURL=create-service.d.ts.map