/** * Create a new page. * * A page belongs to a site and is found by its path, so `site_id` decides * which of the two ways this runs. * * WITH a site, the work belongs to `createPageDocument`: it validates the * blocks, derives a unique path under the parent, and writes the columns the * serving layer reads. This function used to write `author_id`, `title`, * `template`, `views` and `conversions` and nothing else - so a page created * through it had no `site_id`, no `path` and no `blocks`, and `resolvePublishedPage` * could never return it. The insert succeeded, the caller got a row back, and * the page simply did not exist as far as the website was concerned. * * WITHOUT a site, the legacy shape is preserved for the single-site apps that * predate site scoping, rather than throwing at them. * * @param data The page data to create * @returns The created page record */ export declare function store(data: NewPage): Promise; declare type PageJsonResponse = ModelRow; declare type NewPage = NewModelData;