export interface ApiFile { name: string; data: Blob; } export declare class BaseApi { /** Die URL des Servers. Alle Pfadangaben sind relativ zu dieser URL. */ protected url: string; /** Der Anmeldename beim Server */ protected username: string; /** Der Default-RequestInit für einen Fetch */ protected requestinit: RequestInit; /** Die Default-Header-Einträge */ protected headers: Record; /** * Erstellt eine neue API mit der übergebenen Konfiguration. * * @param {string} url - die URL des Servers: Alle Pfadangaben sind relativ zu dieser URL * @param {string} username - der Benutzername für den API-Zugriff * @param {string} password - das Kennwort des Benutzers für den API-Zugriff */ constructor(url: string, username: string, password: string); protected getURL(path: string): string; protected decodeFilename(header: string): string; protected getBinary(path: string, mimetype: string): Promise; getPDF(path: string): Promise; getSQLite(path: string): Promise; getOctetStream(path: string): Promise; protected postMultipartBased(path: string, body: FormData | null): Promise; postMultipart(path: string, body: FormData | null): Promise; protected getTextBased(path: string, mimetype: string): Promise; getText(path: string): Promise; getJSON(path: string): Promise; protected postTextBased(path: string, mimetype_send: string, mimetype_receive: string, body: string | null): Promise; postText(path: string, body: string | null): Promise; postJSON(path: string, body: string | null): Promise; protected postTextBasedToBinary(path: string, mimetype_send: string, mimetype_receive: string, body: string | null): Promise; postJSONtoOctetStream(path: string, body: string | null): Promise; postJSONtoPDF(path: string, body: string | null): Promise; postJSONtoZIP(path: string, body: string | null): Promise; protected patchTextBased(path: string, mimetype: string, body: string): Promise; patchText(path: string, body: string): Promise; patchJSON(path: string, body: string): Promise; protected putTextBased(path: string, mimetype: string, body: string): Promise; putText(path: string, body: string): Promise; putJSON(path: string, body: string): Promise; protected deleteTextBased(path: string, mimetype_send: string | null, mimetype_receive: string, body: string | null): Promise; deleteText(path: string, body: string | null): Promise; deleteJSON(path: string, body: string | null): Promise; } //# sourceMappingURL=BaseApi.d.ts.map