import type { Field, TextareaField } from 'payload'; type BuildSummaryFieldArgs = { /** Auto-fill from page content when the editor leaves it empty. Default true. */ autoFill?: boolean; /** Help text under the field. */ description?: string; /** Sidebar/admin label. */ label?: string; /** Block layout field to derive the summary from. Default 'layout'. */ layoutField?: string; /** Target length for the auto-generated summary. Default 300. */ maxLength?: number; /** Field name. Default 'aiSummary'. */ name?: string; /** Extend/override the generated textarea (position, access…). */ overrides?: Partial; }; /** * A localized `aiSummary` textarea — a concise, human-written (or auto-derived) * description of the page, richer than the SEO meta description. It's the * preferred description for AI-facing surfaces: pass `summaryField: 'aiSummary'` * to buildLlmsTxt and searchContent and they'll use it over meta.description. * * With `autoFill` (default), an empty summary is filled on save from the page's * own content (blocks → plain text, trimmed to ~maxLength). Editors can always * overwrite it — auto-fill only runs when the field is blank, never clobbers a * manual summary. Derived from the page's OWN content, so no hard-coded data. * * // collections/Pages.ts * import { buildSummaryField } from '@intecion/ipal-kit' * fields: [ /* … *\/ buildSummaryField() ] * * // then, richer AI descriptions: * buildLlmsTxt({ …, summaryField: 'aiSummary' }) * createSearchRoute({ …, summaryField: 'aiSummary' }) */ export declare function buildSummaryField(args?: BuildSummaryFieldArgs): Field; export {};