UNPKG

facturapi

Version:

Librería oficial de Facturapi. Crea CFDIs timbrados y enviados al SAT, XML y PDF

27 lines (26 loc) 909 B
export type UniversalFormData = FormData | InstanceType<any>; export declare const createWrapper: (apiKey: string, apiVersion?: "v1" | "v2") => { request(url: string, options?: { params?: Record<string, any> | null; body?: any; formData?: FormData; method?: string; }): Promise<any>; get(url: string, options?: { params?: Record<string, any> | null; }): Promise<any>; post(url: string, options?: { body?: any; formData?: UniversalFormData; params?: Record<string, any> | null; }): Promise<any>; put(url: string, options?: { body?: any; formData?: UniversalFormData; params?: Record<string, any> | null; }): Promise<any>; delete(url: string, options?: { params?: Record<string, any> | null; }): Promise<any>; }; export type WrapperClient = ReturnType<typeof createWrapper>;