UNPKG

@cranberry-money/shared-services

Version:

Platform-agnostic API services with pure functions and dependency injection. Includes auth, portfolios, instruments, countries, sectors, and more.

8 lines 858 B
import { AxiosInstance } from 'axios'; import type { Country, CountryQueryParams, PaginatedResponse } from '@cranberry-money/shared-types'; export declare const configureCountries: (apiClient: AxiosInstance) => void; export declare const getCountries: (params?: CountryQueryParams) => Promise<import("axios").AxiosResponse<PaginatedResponse<Country>, any>>; export declare const getCountryByUuid: (uuid: string) => Promise<import("axios").AxiosResponse<Country, any>>; export declare const getAvailableCountries: (params?: Omit<CountryQueryParams, "is_available">) => Promise<import("axios").AxiosResponse<PaginatedResponse<Country>, any>>; export declare const searchCountries: (searchTerm: string, params?: Omit<CountryQueryParams, "name">) => Promise<import("axios").AxiosResponse<PaginatedResponse<Country>, any>>; //# sourceMappingURL=countries.d.ts.map