import type { RowOf } from '@stacksjs/database/runtime'; /** * Update a page. * * A change to `slug` or `blocks` is not a column write: the slug decides the * page's `path` (and every child's path under it), and blocks have to be * validated and snapshotted into a revision before they replace what is live. * Those go through `updatePageDocument`, which does all three. * * Everything else - title alone, template, meta description, view counters - * is a plain column update, and stays one. * * @param id The id of the page to update * @param data The page data to update * @returns The updated page record */ export declare function update(id: number, data: Partial): Promise; declare type PageJsonResponse = RowOf<'pages'>; declare type PageUpdate = UpdateModelData;