import type { UmbElementSearchItemModel } from './types.js'; import type { UmbSearchDataSource, UmbSearchRequestArgs } from '../../core/search/index.js'; import type { UmbControllerHost } from '../../../libs/controller-api/index.js'; /** * A data source that fetches element search results from the server. * @class UmbElementSearchServerDataSource * @implements {UmbSearchDataSource} */ export declare class UmbElementSearchServerDataSource implements UmbSearchDataSource { #private; /** * Creates an instance of UmbElementSearchServerDataSource. * @param {UmbControllerHost} host - The controller host for this controller to be appended to * @memberof UmbElementSearchServerDataSource */ constructor(host: UmbControllerHost); /** * Search for elements matching the given query, including ancestor chains for breadcrumb rendering. * @param {UmbSearchRequestArgs} args - The arguments for the search * @returns {*} * @memberof UmbElementSearchServerDataSource */ search(args: UmbSearchRequestArgs): Promise<{ data: { items: UmbElementSearchItemModel[]; total: number; }; error?: undefined; } | { error: import("../../core/resources/index.js").UmbCancelError | import("../../core/resources/index.js").UmbApiError | undefined; data?: undefined; }>; }