import { ErrorUnion, OptionValueUnion } from '../outputs'; /** * Returns the value of an option by its name. (Check the list of available options * on https://core.telegram.org/tdlib/options.) Can be called before authorization * @param {Object} params * @param {string} [params.name] - The name of the option * @param {Object} state * @returns {OptionValueUnion | ErrorUnion} */ export declare type GetOptionMethod = (params: GetOptionParams, state?: Record) => Promise; export interface GetOptionParams { /** The name of the option */ name?: string; }