import { type UpdateMap } from "react-elmish/immutable"; import { type CompositeModel, type Message, type Model, type Msg as MsgObject, type Options } from "../SearchScreen/shared"; interface Search { /** * Object to create messages. */ Msg: MsgObject; /** * Initializes the search screen model. * Call this in your init function. */ init: () => Model; /** * Update map to update the model. * Spread this into your update map. */ updateMap: UpdateMap, Message>; } /** * Creates a search screen object for the immutable react-elmish API. * Don't forget to dispatch the refreshSearch message every time the items change. * @param options The options for the search screen. * @returns The created search object. */ declare function createSearch(options: Options): Search; export type { Search }; export { createSearch };