import type { LayoutSection, Template } from '../types'; export declare function replaceTemplateInList(prev: T[], match: (t: T) => boolean, replacement: T): T[]; export declare function updateCurrentTemplate(template: Template | undefined, editData: { name?: string; layout?: LayoutSection | LayoutSection[]; }): { name: string; layout: LayoutSection[]; };