import type { ComponentObject, IfObject } from 'noodl-types'; import type { NuiComponent } from '../types'; export declare function getListAttribute(component: NuiComponent.Instance): any; export declare function evalIf(val: O): any; export declare function getByRef(root?: {}, ref?: string, rootKey?: string): any; /** * Traverses the parent hierarchy, running the comparator function in each * iteration. If a callback returns true, the node in that iteration will become * the returned parent * @param { NuiComponent.Instance } component * @param { function } fn */ export declare function findParent(component: C | undefined, fn: (parent: NuiComponent.Instance | null) => boolean): NuiComponent.Instance | null; export declare function findListDataObject(component: NuiComponent.Instance | Record | undefined): any; export declare function findIteratorVar(component: NuiComponent.Instance | Record | undefined): string; export declare function flatten(component: NuiComponent.Instance | undefined): NuiComponent.Instance[]; /** * Returns the element nodes of data keys. If dataKeys is not provided it will * return all of the matching nodes by default. If provided, it will return only * the nodes of the data keys that were given * @param { string | string[] | undefined } dataKeys */ export declare function getDataFields(dataKeys?: string | string[]): { [key: string]: HTMLElement | null; } | undefined; /** * * @param { string[] | object } nodes - String of data keys */ export declare function getDataValues(nodes?: K[] | Fields): { [P in keyof Fields]: Fields[P]; }; export declare function getPluginLocation(obj: NuiComponent.Instance | ComponentObject | string | undefined): "body-bottom" | "body-top" | "head"; export declare function isListConsumer(component: unknown): component is NuiComponent.Instance; export declare function isListLike(component: NuiComponent.Instance): boolean; export declare function parseReference(ref: string, { page, root }: { page?: string; root?: any; }): any; export declare function pullFromComponent(key: string | undefined, component: NuiComponent.Instance | undefined | null): any; export declare function find(key: string | string[] | undefined, component: NuiComponent.Instance | null | undefined): any; /** * Recursively invokes the provided callback on each child. * @param { NuiComponent.Instance } component * @param { function } cb */ export declare function publish(cb: (child: NuiComponent.Instance) => void, component: NuiComponent.Instance | undefined): void; export declare function publish(component: NuiComponent.Instance | undefined, cb: (child: NuiComponent.Instance) => void): void; export declare function resolveAssetUrl(pathValue: string | undefined, opts: { assetsUrl?: string; dataObject?: Record; dataKey?: string; iteratorVar?: string; }): string; export declare function resolveAssetUrl(pathValue: string | undefined, assetsUrl: string): string; export declare function unwrapObj(obj: any): any;