import { type UpdateMap } from "react-elmish"; import { type CompositeModel, type Message, type Model, type Msg as MsgObject, type Options } from "./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. * 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 { Message, Model, Msg, Options } from "./shared"; export { createSearch };