import { Widget, WidgetConfig, WidgetStyleConfig } from "./Widget"; import { ClassProp, ModProp, StyleProp } from "./Prop"; import { Instance } from "./Instance"; import { CxChild, RenderingContext } from "./RenderingContext"; import { Create } from "../util"; export type ChildNode = Create | string | number | boolean | null | undefined; export interface ContainerConfig extends WidgetConfig { /** Keep whitespace in text based children. Default is `false`. See also `trimWhitespace`. */ ws?: boolean; /** Remove all whitespace in text based children. Default is `true`. See also `preserveWhitespace`. */ trimWhitespace?: boolean; /** Keep whitespace in text based children. Default is `false`. See also `trimWhitespace`. */ preserveWhitespace?: boolean; /** List of child elements. */ items?: ChildNode | ChildNode[]; /** List of child elements. */ children?: ChildNode | ChildNode[]; plainText?: boolean; add?: never; clear?: never; } export interface StyledContainerConfig extends ContainerConfig, WidgetStyleConfig { } export declare class ContainerBase extends Widget { ws?: boolean; preserveWhitespace?: boolean; trimWhitespace?: boolean; items: Widget[]; children?: Widget[]; layout?: Container | null; useParentLayout?: boolean; itemDefaults?: any; plainText?: boolean; init(context?: any): void; protected exploreItems(context: RenderingContext, instance: Instance, items: CxChild[]): void; explore(context: any, instance: any): void; render(context: any, instance: any, key: any): any; protected renderChildren(_context: any, instance: any, key?: string): any; clear(): void; add(...args: any[]): void; protected wrapItem(item: any): any; protected addText(text: string): void; find(filter: any, options?: any): any[]; findFirst(filter: any, options?: any): any; } export declare class Container extends ContainerBase { } export declare class StyledContainerBase extends ContainerBase { class?: ClassProp; className?: ClassProp; style?: StyleProp; styles?: StyleProp; baseClass?: string; mod?: ModProp; } export declare class StyledContainer extends StyledContainerBase { } //# sourceMappingURL=Container.d.ts.map