import { type PaginatedResult } from "@feedmepos/payment-entity"; import { type AxiosInstance, type AxiosResponse } from "axios"; import type { WorkBook } from "xlsx"; type ApiVariant = "portal" | "auth"; interface ApiUrl { portalBackendUrl: string; accountBackendUrl: string; } export declare const SvcConfig: { getIdToken(): string | null; getBusinessId(): string | undefined; getRestaurantId(): string | undefined; getBackendUrl(): ApiUrl; }; declare class ApiError extends Error { constructor(message?: string); } export declare class SvcCompanyApiError extends ApiError { constructor(message: string); } export declare const baseClientInstance: (path?: string, variant?: ApiVariant, config?: { noIdRequired?: boolean; url?: string; customIdToken?: string; }) => AxiosInstance; export declare const authInstance: (config?: { noIdRequired?: boolean; url?: string; customIdToken?: string; }) => AxiosInstance; export declare const businessClientInstance: () => AxiosInstance; export declare const restaurantClientInstance: (prefix?: string) => AxiosInstance; type TransformFunction = (value: T, item: I) => any; type TransformFunctions = { [K in keyof T | string]?: TransformFunction; }; export declare function flattenObject(obj: Record, parentKey?: string): Record; export declare function localWorkbookAndDownload(data: T[], options?: { transformers?: TransformFunctions; exclude?: (keyof T | string)[]; include?: (keyof T | string)[]; rename?: Partial>; filename?: string; }): void; export declare function getWorkbookAndDownload(response: AxiosResponse, filename: string): void; export declare function openWith(blob: Blob, filename: string): void; export declare function downloadAs(blob: Blob, filename: string): void; export declare function getData(response: AxiosResponse): T; export declare function getPaginatedResult(response: AxiosResponse>): PaginatedResult; export {};