import type { Plugin, PluginMetadata } from '@histoire/shared';
/** Validated public information projected into a browser module. */
export interface PublicPluginMetadata extends PluginMetadata {
    /** Actual installed npm identity. */ packageName?: string;
    /** Version from the installed package, never its dependency range. */ version?: string;
}
/** Admit only web URLs, excluding embedded credentials. */
export declare function webUrl(value: unknown, httpsOnly?: boolean): string | undefined;
/** Convert common npm Git URLs to browser URLs without accepting arbitrary schemes. */
export declare function repositoryUrl(value: unknown): string | undefined;
/** Project safe public metadata from JSON already read for this plugin. */
export declare function resolvePackageMetadata(plugin: Plugin, pkg: Record<string, any>): PublicPluginMetadata;
/** Resolve package fallback once per plugin, preserving duplicate identities and order. */
export declare function resolvePluginMetadata(root: string, plugins: readonly Plugin[]): Promise<PublicPluginMetadata[]>;
//# sourceMappingURL=plugin-metadata.d.ts.map