import { ErrorUnion, OkUnion } from '../outputs'; /** * Adds a custom server language pack to the list of installed language packs in current * localization target. Can be called before authorization * @param {Object} params * @param {string} [params.languagePackId] - Identifier of a language pack to be * added; may be different from a name that is used in an "https://t.me/setlanguage/" * link * @param {Object} state * @returns {OkUnion | ErrorUnion} */ export declare type AddCustomServerLanguagePackMethod = (params: AddCustomServerLanguagePackParams, state?: Record) => Promise; export interface AddCustomServerLanguagePackParams { /** * Identifier of a language pack to be added; may be different from a name that is used * in an "https://t.me/setlanguage/" link */ languagePackId?: string; }