import { HeadlessContext } from '../dom/headless-context';
import { Renderable, TNode } from '../types/domain';
/**
 * Returns a renderable function that executes the given function with the current DOMContext as argument.
 *
 * @param fn - The function to be executed with the DOMContext argument.
 * @returns A Clear function that can be used to clean up any resources associated with the execution.
 * @public
 */
export declare const OnHeadlessCtx: (fn: (ctx: HeadlessContext) => TNode | void) => Renderable;
