import { LabelLike } from "../labels.mjs"; import { ColophonItem } from "../items.mjs"; import { ColophonConditionArgs } from "../options.mjs"; import { Plugin } from "payload"; export interface ColophonPluginArgs { /** * Replaces the default rows. Spread `defaultColophonItems` to keep them: * `items: [...defaultColophonItems, { key: "region", env: ["APP_REGION"] }]`. */ items?: ColophonItem[] | undefined; /** * Group label. Defaults to `"System"`. */ label?: LabelLike | undefined; /** * Start the group expanded. Defaults to collapsed, as a footer should be. */ open?: boolean | undefined; /** * Hides the whole group when it returns false. Defaults to always visible. */ condition?: ((args: ColophonConditionArgs) => boolean) | undefined; } /** * Shows system metadata at the foot of the admin sidebar. * * Values are read from the environment of the running process each time the * admin renders, not inlined at build time, so one image redeployed with a new * `APP_VERSION` reports the new version without being rebuilt. * * The options are parked on the config's server-only `custom` extension point * rather than passed as component props, because the component is resolved by * import path and cannot be closed over, and because `items` holds functions * that `admin.custom` would have to serialize to the client. */ export declare const colophonPlugin: (args?: ColophonPluginArgs) => Plugin;