import type { PluginsAbility } from '../types'; export type PluginColumn = 'name' | 'version' | 'status' | 'run' | 'install' | 'enable' | 'visibleTo' | 'registry'; /** The columns holding a per-row control rather than plain text. */ export type ControlColumn = Extract; /** Run is everyone's; Install and Enable are the organization admin's; Visible to is the platform admin's; Registry only once some row has a registry state. */ export declare function visibleColumns(ability: PluginsAbility, canGrant: boolean, hasRegistryStanding: boolean): PluginColumn[]; export declare function gridTemplate(columns: readonly PluginColumn[]): string; /** The narrowest a row of these columns can be, in rem, padding excluded. */ export declare function minRowWidth(columns: readonly PluginColumn[]): number; /** The columns that fit `availableRem`, so the table never scrolls sideways. A width of 0 means unmeasured. */ export declare function fitColumns(columns: readonly PluginColumn[], availableRem: number): PluginColumn[]; //# sourceMappingURL=pluginColumns.d.ts.map