/** * Creates a proxy around template context data that adds back * the `dataContext` prop returning the original data */ export declare function withDataContext(data: unknown): any; interface DataContextProp { /** * @deprecated template context props are now available as the root object and can be accessed directly. * E.g. instead of `ctx.dataContext.` just `ctx.` */ dataContext: T; } export type WithDataContext = T extends [infer F, ...infer R] ? [F & DataContextProp, ...WithDataContext] : []; export {};