declare type Get, R> = { (queryParams?: Q, options?: Record): Promise; }; declare type GetOne, R> = { (id: number, queryParams?: Q, options?: Record): Promise; }; declare type Post, R> = { (body: B, options?: Record): Promise; }; declare type Put | string[], R> = { (body: B, options?: Record): Promise; }; declare type Patch, R> = { (id: number | string | null, body: B, options?: Record): Promise; }; declare type Delete, R> = { (id: number | string | null, queryParams?: Q, options?: Record): Promise; }; declare type Params = { id: string; }; export type { Get, GetOne, Post, Put, Patch, Delete, Params };