biketag
Version:
The Javascript client API for BikeTag Games
29 lines (27 loc) • 2.85 kB
TypeScript
import { geopoint } from './types';
import { default as TinyCache } from 'tinycache';
import { Tag } from './schema';
export declare const getConfirmedBoundarySymbol = "\u2713";
export declare const getTagnumberFromSlug: (inputText: string, fallback?: number, cache?: typeof TinyCache) => number;
export declare const getTagNumbersFromText: (inputText: string, fallback?: number | number[], cache?: typeof TinyCache) => number | number[];
export declare const getPlayerFromText: (inputText: string, fallback?: string, cache?: typeof TinyCache) => string;
export declare const getFoundLocationFromText: (inputText: string, fallback: string, cache?: typeof TinyCache) => string;
export declare const getHintFromText: (inputText: string, fallback: string | string[], cache?: typeof TinyCache) => string | string[];
export declare const getGpsStringLocationFromText: (inputText: string, fallback: string, cache?: typeof TinyCache) => string;
export declare const getGPSLocationFromText: (inputText: string, fallback?: geopoint, cache?: typeof TinyCache) => geopoint;
export declare const getImgurAlbumIdFromText: (inputText: string, fallback: string, cache?: typeof TinyCache) => string;
export declare const getMentionURLsFromText: (inputText: string, fallback: string | string[], cache?: typeof TinyCache) => string | string[];
export declare const getImageURLsFromText: (inputText: string, fallback: string | string[], cache?: typeof TinyCache) => string | string[];
export declare const getDiscussionUrlFromText: (inputText: string, cache?: typeof TinyCache) => string;
export declare const getImageHashFromText: (inputText?: string, cache?: typeof TinyCache) => string;
export declare const getSanityImageUrlHashFromText: (inputText: string, cache?: typeof TinyCache) => string;
export declare const getImgurFoundImageHashFromBikeTagData: (tag: Tag, cache?: typeof TinyCache) => string;
export declare const getDateStringForImgurDescription: (isodate: number) => string;
export declare const getImgurFoundDescriptionFromBikeTagData: (tag: Tag, includeCredit?: boolean, includeDate?: boolean) => string;
export declare const getImgurFoundTitleFromBikeTagData: (tag: Tag, fromCombinedTag?: boolean) => string;
export declare const getImgurMysteryImageHashFromBikeTagData: (tag: Tag, cache?: typeof TinyCache) => string;
export declare const getImgurMysteryTitleFromBikeTagData: (tag: Tag, fromCombinedTag?: boolean) => string;
export declare const getImgurMysteryDescriptionFromBikeTagData: (tag: Tag, includeCredit?: boolean, includeHint?: boolean, includeDate?: boolean) => string;
export declare const getOnlyMysteryTagFromTagData: (tagData: Tag) => Tag;
export declare const getOnlyFoundTagFromTagData: (tagData: Tag) => Tag;
export declare const getRedditPostTextFromTagData: (tagData: Tag, gameData?: any, wrapInPreTag?: boolean) => string;