import { CollectionType } from '../components/collection/collection';
import { TipserProductModel } from '../components/product/model';
import { SearchResults } from '../components/collection/dynamic-collection';
import { TipserEnv } from '../common/enums/env';
import { Whatever } from '../types/whatever';
export declare const get: <T>(url: string) => Promise<T>;
export declare const fetchTipserProduct: (productId: string, posId: string, env: TipserEnv) => Promise<TipserProductModel>;
export declare const fetchTipserProductPreview: (productId: string, posId: string, env: TipserEnv) => Promise<TipserProductModel>;
export declare const fetchTipserCollection: (collectionId: string, env: TipserEnv) => Promise<CollectionType>;
export declare const fetchTipserProductsFromQuery: (query: string, market: string, limit: number, posId: string, env: TipserEnv) => Promise<SearchResults>;
export declare const fetchTipserShop: (posId: string, env: TipserEnv) => Promise<{
    collections: Array<CollectionType>;
}>;
export declare const fetchLogo: (posId: string, env: TipserEnv) => Promise<string>;
export interface TipserApiRequestSpec {
    method: 'get' | 'post' | 'delete' | 'put';
    url: string;
    body?: Whatever;
    token?: string;
    headers?: RequestInit['headers'];
    credentials?: 'include' | 'omit' | 'same-origin';
}
export declare function sendRequestToTipserApi<T>(spec: TipserApiRequestSpec): Promise<T>;
//# sourceMappingURL=tipser-api.d.ts.map