import type { AuthenticationClient, RestClient } from '@directus/sdk'; type Schema = any; export declare class DirectusError extends Error { errors: Array<{ extensions?: Record; message: string; }>; headers: Headers; message: string; response: Response; status: number; constructor(response: Response); formatError(): string; parseErrors(): Promise; } declare class Api { client: (AuthenticationClient & RestClient) | undefined; url: string | undefined; private authData; private limiter; constructor(); getToken(): null | string; initialize(url: string): void; login(email: string, password: string): Promise; loginWithToken(token: string): Promise; logout(): Promise; refreshToken(): Promise; private enhancedFetch; } declare const api: Api; export { api };