import { CellTemplateProp, ColumnDataSchemaModel, ColumnTemplateProp, HyperFunc, VNode } from '@revolist/revogrid'; import { Component } from 'svelte'; import { ReactiveProps } from './reactive-props.svelte'; export type SvelteCellProps = CellTemplateProp & { addition?: any; [key: string]: any; }; export interface SvelteElement extends HTMLElement { _svelteTemplate?: RenderedComponent; } export interface RenderedComponent> { component: Component; instance: Record; props: ReactiveProps; update: (newProps: T) => void; destroy: () => void; } export declare function SvelteTemplateConstructor>(el: SvelteElement | null, SvelteComponent: Component, initialProps: T, lastEl?: RenderedComponent | null, context?: Map | undefined): RenderedComponent | null; /** * Render a Svelte component in a RevoGrid column cell template. */ export declare const Template: = SvelteCellProps>(SvelteComponent: Component, customProps?: Partial) => (h: HyperFunc, p: ColumnDataSchemaModel | ColumnTemplateProp | CellTemplateProp, addition?: any) => VNode;