You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
935 B
22 lines
935 B
import { ExtensionCategory } from '../constants';
|
|
import type { Loosen } from '../types';
|
|
import type { ExtensionRegistry } from './types';
|
|
/**
|
|
* <zh/> 根据类别和类型获取扩展
|
|
*
|
|
* <en/> Get the extension by category and type
|
|
* @param category - <zh/> 扩展类别 | <en/> Extension category
|
|
* @param type - <zh/> 扩展类型 | <en/> Extension type
|
|
* @returns <zh/> 注册的扩展 | <en/> Registered extension
|
|
* @internal
|
|
*/
|
|
export declare function getExtension<T extends ExtensionCategory>(category: Loosen<T>, type: string): ExtensionRegistry[T][string] | undefined;
|
|
/**
|
|
* <zh/> 根据类别获取扩展
|
|
*
|
|
* <en/> Get the extension by category and type
|
|
* @param category - <zh/> 扩展类别 | <en/> Extension category
|
|
* @returns <zh/> 注册的扩展 | <en/> Registered extension
|
|
* @internal
|
|
*/
|
|
export declare function getExtensions<T extends Loosen<ExtensionCategory>>(category: T): ExtensionRegistry[T];
|
|
|