import { ConfigApi } from '@backstage/core-plugin-api';
import { FrontendFeature, FrontendPluginInfo } from '@backstage/frontend-plugin-api';
import { JsonObject } from '@backstage/types';
/**
 * A function that resolves plugin info from a plugin manifest and package.json.
 *
 * @public
 */
export type FrontendPluginInfoResolver = (ctx: {
    packageJson(): Promise<JsonObject | undefined>;
    manifest(): Promise<JsonObject | undefined>;
    defaultResolver(sources: {
        packageJson: JsonObject | undefined;
        manifest: JsonObject | undefined;
    }): Promise<{
        info: FrontendPluginInfo;
    }>;
}) => Promise<{
    info: FrontendPluginInfo;
}>;
export declare function createPluginInfoAttacher(config: ConfigApi, infoResolver?: FrontendPluginInfoResolver): (feature: FrontendFeature) => FrontendFeature;
