import { ErrorUnion, OkUnion } from '../outputs'; /** * Toggles whether the message history of a supergroup is available to new members; * requires appropriate administrator rights in the supergroup. * @param {Object} params * @param {number} [params.supergroupId] - The identifier of the supergroup * @param {boolean} [params.isAllHistoryAvailable] - The new value of is_all_history_available * @param {Object} state * @returns {OkUnion | ErrorUnion} */ export declare type ToggleSupergroupIsAllHistoryAvailableMethod = (params: ToggleSupergroupIsAllHistoryAvailableParams, state?: Record) => Promise; export interface ToggleSupergroupIsAllHistoryAvailableParams { /** The identifier of the supergroup */ supergroupId?: number; /** The new value of is_all_history_available */ isAllHistoryAvailable?: boolean; }