/// <reference types="react" />
import type { BackendClass, BackendEntry, ConfigWithDefaults, DisplayURL, ImplementationEntry, ImplementationFile, ImplementationMediaFile, PersistOptions, User } from '@staticcms/core';
import type { Cursor } from '@staticcms/core/lib/util';
import type AssetProxy from '@staticcms/core/valueObjects/AssetProxy';
export default class ProxyBackend implements BackendClass {
    proxyUrl: string;
    mediaFolder?: string;
    publicFolder?: string;
    options: {};
    branch: string;
    constructor(config: ConfigWithDefaults, options?: {});
    status(): Promise<{
        auth: {
            status: boolean;
        };
        api: {
            status: boolean;
            statusPage: string;
        };
    }>;
    authComponent(): import("react").FC<import("@staticcms/core").AuthenticationPageProps>;
    restoreUser(): Promise<User>;
    authenticate(): Promise<User>;
    logout(): null;
    getToken(): Promise<string>;
    request<T>(payload: {
        action: string;
        params: Record<string, unknown>;
    }): Promise<T>;
    entriesByFolder(folder: string, extension: string): Promise<ImplementationEntry[]>;
    entriesByFiles(files: ImplementationFile[]): Promise<ImplementationEntry[]>;
    getEntry(path: string): Promise<ImplementationEntry>;
    persistEntry(entry: BackendEntry, options: PersistOptions): Promise<void>;
    getMedia(mediaFolder?: string | undefined, publicFolder?: string | undefined): Promise<{
        id: string;
        name: string;
        displayURL: {
            id: string;
            path: string;
        };
        path: string;
        isDirectory: boolean;
    }[]>;
    getMediaFile(path: string): Promise<ImplementationMediaFile>;
    getMediaDisplayURL(displayURL: DisplayURL): Promise<string>;
    persistMedia(assetProxy: AssetProxy, options: PersistOptions): Promise<{
        id: string;
        name: string;
        path: string;
        file: File;
        size: number;
        url: string;
        displayURL: string;
    }>;
    deleteFiles(paths: string[], commitMessage: string): Promise<unknown>;
    traverseCursor(): Promise<{
        entries: ImplementationEntry[];
        cursor: Cursor;
    }>;
    allEntriesByFolder(folder: string, extension: string): Promise<ImplementationEntry[]>;
}
