import 'typescript-generic-types' export type SdkError = { message: string code: number [key: string]: any } export type Breakpoints = 'XS' | 'SM' | 'MD' | 'L' export type SdkInitOptions = { serverUrls: ServerUrls onErrorCallback?: (errObject: SdkError | Record) => void headers?: Record getQueryClient?(): { getQueriesData: Function setQueryData: Function setQueriesData: Function getQueryState: Function removeQueries: Function resetQueries: Function cancelQueries: Function clear: Function } /** Get item from local storage */ localStorageGet?(key: string): any /** Set item from local storage */ localStorageSet?(key: string, value: any): any } export declare function init(options: SdkInitOptions): void type Apps = '%%allAppNamesTypeString%%' export type ServerUrls = Record<'%%allBackendFoldersForSdk%%', string> & { default: '%%allBackendFoldersForSdk%%' } export declare function apiCall(app: Apps, route: string, ...params: any[]): Promise export declare function setHeaders(newHeaders: Record, mergeWithPrevious: boolean): void export declare function onError(errObject: SdkError | Record, status: number): void export declare function beforeApiCall(fn: (route: string, ...params: any[]) => any | Promise): void type ServerState = { hasBeenInitialised: boolean serverUrl: ServerUrls headers: Record getQueryClient: () => null | { getQueriesData: Function setQueryData: Function setQueriesData: Function getQueryState: Function removeQueries: Function resetQueries: Function cancelQueries: Function clear: Function } } export declare function getServerState(): ServerState export declare const methodNames: { service: [server: string, route: string] dbRead: Record dbWrite: Record }