import type { WidgetsApi } from "@fluid-app/portal-core/widgets-api";
import type { FetchClient } from "@fluid-app/portal-tenant-api-client";
export interface LegacyWidgetsApiConfig {
    baseUrl: string | undefined;
    getApiHeaders: (() => Record<string, string>) | undefined;
}
export declare function createLegacyWidgetsApiAdapter(config: LegacyWidgetsApiConfig): WidgetsApi;
export declare function createPortalWidgetsApiAdapter(client: FetchClient, legacyConfig: LegacyWidgetsApiConfig): WidgetsApi;
//# sourceMappingURL=widgets-api-adapter.d.ts.map