UNPKG

@botonic/plugin-contentful

Version:

Botonic Plugin Contentful is one of the **[available](https://github.com/hubtype/botonic/tree/master/packages)** plugins for Botonic. **[Contentful](http://www.contentful.com)** is a CMS (Content Management System) which manages contents of a great variet

23 lines (22 loc) 855 B
import { Button, CommonFields, TopContentId } from '../cms'; export declare class SearchCandidate { readonly contentId: TopContentId; readonly common: CommonFields; readonly priority: number; /** * @param contentId It may be a {@link Callback}'s with an URL instead of payload */ constructor(contentId: TopContentId, common: CommonFields, priority?: number); withResult(match: string, score: number): SearchResult; } export declare class SearchResult extends SearchCandidate { readonly match: string; readonly score: number; static CHITCHAT_SHORT_TEXT: string; /** * @param match part of the input which match against a recognized text */ constructor(candidate: SearchCandidate, match: string, score: number); toButton(): Button; getCallbackIfChitchat(): TopContentId | undefined; }