/** * Emil PublicAPI * The Emil Public API description * * The version of the OpenAPI document: 1.0 * Contact: kontakt@emil.de * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { Configuration } from "./configuration"; import { RequestArgs } from "./base"; import { AxiosInstance, AxiosResponse } from 'axios'; import { URL } from 'url'; /** * * @export */ export declare const DUMMY_BASE_URL = "https://example.com"; /** * * @throws {RequiredError} * @export */ export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void; /** * * @export */ export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise; /** * * @export */ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void; /** * * @export */ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise; /** * * @export */ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise; /** * * @export */ export declare const setSearchParams: (url: URL, ...objects: any[]) => void; /** * * @export */ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any; /** * * @export */ export declare const toPathString: (url: URL) => string; /** * * @export */ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => >(axios?: AxiosInstance, basePath?: string) => Promise; /** * Emil PublicAPI * The Emil Public API description * * The version of the OpenAPI document: 1.0 * Contact: kontakt@emil.de * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ export interface IStorageConverter { toStorageData(data: D): SD; fromStorageData(storageData: SD): D; } export interface IStorage { get(key: string, converter?: IStorageConverter): T | null; set(key: string, value: T, converter?: IStorageConverter): void; } export declare class LocalStorage implements IStorage { readonly storage: Storage; constructor(); get(key: string, converter?: IStorageConverter): T | null; set(key: string, value: T, converter?: IStorageConverter): void; } export declare const defaultStorage: () => IStorage;