import { ClientOptions, CountriesArgs, FindArgs, RetrieveArgs } from './types'; declare type ApiOptions = CountriesArgs | FindArgs | RetrieveArgs; export default function createClient({ key, endpoint, fetch, options }: ClientOptions): { get: (path: string, args: ApiOptions) => Promise; countries: (args: CountriesArgs) => Promise<{ get: (query: string) => Promise<{ get: () => Promise; id: string; }[]>; code: string; }[]>; find: (args: FindArgs) => Promise<{ get: () => Promise; id: string; }[]>; retrieve: (args: RetrieveArgs) => Promise; }; export {};