UNPKG

@botonic/plugin-contentful

Version:

## What Does This Plugin Do?

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; }