import { AxiosInstance } from 'axios'; import { Contact } from './types'; export * from './types'; export interface OXMailRecipient { name?: string; email: string; } export interface OX { autocompleteContacts(args: { query: string; signal?: AbortSignal; }): Promise; sendMail(args: { from: OXMailRecipient; to: OXMailRecipient; subject: string; htmlContent: string; signal?: AbortSignal; }): Promise; } /** * Client for the Open-Xchange middleware HTTP API. * * The base url is resolved lazily through `getApiUrl` because it originates from * a config option that is only available after the app has bootstrapped. */ export declare const ox: (axiosClient: AxiosInstance, getApiUrl: () => string | undefined) => OX;