mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-12-01 17:44:59 +05:00
21 lines
511 B
TypeScript
21 lines
511 B
TypeScript
|
import { QueryType } from "../types/types";
|
||
|
declare class QueryResolver {
|
||
|
/**
|
||
|
* Query resolver
|
||
|
*/
|
||
|
private constructor();
|
||
|
/**
|
||
|
* Resolves the given search query
|
||
|
* @param {string} query The query
|
||
|
* @returns {QueryType}
|
||
|
*/
|
||
|
static resolve(query: string): Promise<QueryType>;
|
||
|
/**
|
||
|
* Parses vimeo id from url
|
||
|
* @param {string} query The query
|
||
|
* @returns {string}
|
||
|
*/
|
||
|
static getVimeoID(query: string): Promise<string>;
|
||
|
}
|
||
|
export { QueryResolver };
|