import { AnyVirtualDOM, ChildrenLike, VirtualDOM } from '@youwol/rx-vdom'; /** * Type definition for the arguments to create a {@link SingleLayout}. */ export type SingleArguments = { /** * Content of the layout. */ content: AnyVirtualDOM; }; /** * Function to create a {@link SingleLayout}. * * @param params Arguments */ export declare function single(params: SingleArguments): SingleLayout; /** * Class representing a layout featuring a single content. * * * const content = { * tag:'div', * class: 'p-2 w-100 h-100 bg-light border rounded', * innerText: 'Main Content' * } * display(Views.Layouts.single({content})) * */ export declare class SingleLayout implements VirtualDOM<'div'> { readonly tag = "div"; readonly style: import("@youwol/rx-vdom").CSSAttribute; readonly children: ChildrenLike; readonly content: AnyVirtualDOM; /** * Creates an instance of SingleLayout. * * @param params Arguments */ constructor(params: SingleArguments); }