/// import { URLSearchParams } from 'url'; import { AUTH_TYPE, BlackWhiteList } from './types'; export declare function getDataFromResponse(json: unknown, statusText: string): string; export declare function getErrorMessage(error?: Response): Promise; /** returns validated baseUrl without trailing slash */ export declare function validateBaseUrl(url: string): string; export declare function getDefaultQueryList(query?: URLSearchParams): string; export declare function getDefaultQuerySingle(query?: URLSearchParams): string; export declare function postCreate

| unknown; content: Partial<{ raw: string; rendered: string; }>; id: number; excerpt: Partial<{ raw: string; rendered: string; }>; title: Partial<{ raw: string; rendered: string; }>; }>>(body: Omit): Omit & Partial<{ content: string; excerpt: string; fields: Record | unknown; title: string; }>; export declare function useAuth(url: string, method: 'get' | 'post' | 'delete' | 'options', authType?: AUTH_TYPE, protectedRoutes?: BlackWhiteList, publicRoutes?: BlackWhiteList): boolean; export declare function getDeleteUri(endpoint: string, id: number, params?: URLSearchParams, trashable?: string[]): string;