import { VirtualApi } from "@adobe/uix-core";
import { Asset } from "../types/asset/Asset";
export interface SelectContentExtensionApi extends VirtualApi {
    api: {
        selectContentExtension: {
            sync: () => {
                selectedAssets: Asset[];
                selectionLimit: number;
            };
            setSelectedAssets: (extensionId: string, assets: Asset[]) => void;
        };
    };
}
export declare class SelectContentExtensionServiceError extends Error {
    constructor(message: string);
}
export declare class SelectContentExtensionService {
    /**
     * Sync the selected assets
     * @param connection - The guest connection to the host
     * @returns the current selected assets and the total count of left assets
     */
    static sync(connection: any, extensionId: string): Promise<{
        selectedAssets: Asset[];
        selectionLimit: number;
        allowedFileTypes: string[];
    }>;
    /**
     * Set the selected assets
     * @param extensionId - the extension id of the content select content add ons
     * @param assets - the selected assets
     */
    static setSelectedAssets(connection: any, extensionId: string, assets: Asset[]): void;
}
