import { ErrorUnion, OkUnion } from '../outputs'; /** * Changes the order of pinned chats * @param {Object} params * @param {number[]} [params.chatIds] - The new list of pinned chats * @param {Object} state * @returns {OkUnion | ErrorUnion} */ export declare type SetPinnedChatsMethod = (params: SetPinnedChatsParams, state?: Record) => Promise; export interface SetPinnedChatsParams { /** The new list of pinned chats */ chatIds?: number[]; }