/** * SDK utilities - Auto-generated. * @generated */ import type { SDKMethodOptions } from "./types"; /** * Extract success data type from Orval response union. * Orval generates: Promise<(SuccessResponse | ErrorResponse)> * where SuccessResponse = { data: T, status: 200|201|204 } & { headers: Headers } */ type ExtractSuccessData = T extends { status: 200 | 201 | 204; data: infer D; } ? D : never; /** * Wrap a generated method to add SDK options support and unwrap response. * Types are preserved through TypeScript inference. */ export declare function wrapMethod Promise<{ status: number; data: any; headers?: Headers; }>>(fn: TFn): (...args: [...(Parameters extends [...infer Rest, RequestInit?] ? Rest : Parameters), SDKMethodOptions?]) => Promise>>>; /** * Wrap a list method with pagination options support. * Preserves the original function's params type for module-specific fields. */ export declare function wrapListMethod Promise<{ status: number; data: any; headers?: Headers; }>>(fn: TFn): (options?: Omit[0]>, "order_by"> & { order_by?: string | string[]; } & SDKMethodOptions) => Promise>>>; export {}; //# sourceMappingURL=utils.d.ts.map