/** * Hydrates the active site, page, section, and symbol stores for the editor * @param {import('..').Site_Data} data - Combined data object from the server */ export function hydrate_active_data(data: any): Promise; /** @returns {void} */ export function undo_change(): void; /** @returns {void} */ export function redo_change(): void; export function update_page_preview(page?: { id: any; name: any; slug: any; content: any; page_type: any; }): Promise; /** * Updates a section with new data and applies changes. * * @async * @param {string} section_id - The ID of the section to update. * @param {Object} options - The options for updating the section. * @param {Object} options.updated_data - The updated data for the section. * @param {Object} options.changes - The changes to apply to the section. * @returns {Promise} */ export function update_section(section_id: string, { updated_data, changes }: { updated_data: any; changes: any; }): Promise; export function delete_page_type_section(section_id: any): Promise; export function add_page_type_section(symbol: any, position: any): Promise; export function update_page_type_fields({ changes, content, fields }: { changes: any; content: any; fields: any; }): Promise; export function toggle_symbol_for_page_type({ symbol_id, page_type_id, toggled }: { symbol_id: any; page_type_id: any; toggled: any; }): Promise; export function update_section_content({ id, value }: { id: any; value: any; }): Promise; export function update_site_code_and_content({ code, content, fields, content_changes, fields_changes }: { code: any; content: any; fields: any; content_changes: any; fields_changes: any; }): Promise; export function add_language(key: any): Promise; export function delete_language(key: any): Promise; export function set_language(loc: any): Promise; export namespace symbols { export function create(symbol: any, changes?: { fields: any[]; content: any[]; }, index?: number): Promise; export function update(symbol_id: any, updated_data: any, changes?: { fields: any[]; content: any[]; }): Promise; export function _delete(block_id: any): Promise; export { _delete as delete }; export function rearrange(rearranged_symbols: any): Promise; export function move_block(block_being_moved: any, new_position: any): Promise; } export namespace active_site { export function update_1(props: any): Promise; export { update_1 as update }; } export namespace active_page { export function add_block({ palette_id, symbol, position }: { palette_id: any; symbol: any; position: any; }): Promise; export function add_primo_block(symbol: any, position: any): Promise; export function move_block_1(block_being_moved: any, to: any): Promise; export { move_block_1 as move_block }; export function duplicate_block(block_id: any): Promise; export function delete_block(block_id: any): Promise; export function update_2({ obj, is_page_type }: { obj: any; is_page_type?: boolean; }): Promise; export { update_2 as update }; } export namespace page_types { export function create_1({ details }: { details: { id: string; name: string; url: string; parent: string; }; source: string; }): Promise; export { create_1 as create }; export function _delete_1(page_type_id: any): Promise; export { _delete_1 as delete }; export function update_3(page_id: any, obj: any): Promise; export { update_3 as update }; } export namespace pages { export function create_2(new_page: any): Promise; export { create_2 as create }; export function _delete_2(page_id: any): Promise; export { _delete_2 as delete }; export function update_4(page_id: any, obj: any): Promise; export { update_4 as update }; export function rearrange_1(page: any, new_position: any): Promise; export { rearrange_1 as rearrange }; } export namespace update_page_content { function store(content: any): Promise; function db({ content, changes }: { content: any; changes: any; }): Promise; } declare namespace _default { export { active_site }; export { active_page }; export { pages }; export { update_page_preview }; export { update_section_content }; export { add_language }; export { delete_language }; export { set_language }; } export default _default;