// Type definitions for trello-node-api declare class TrelloAction { search(actionId: string): Promise; searchField(actionId: string, fieldName: string): Promise; update(actionId: string, params: any): Promise; del(actionId: string): Promise; } declare class TrelloBoard { create(params: any): Promise; search(boardId: string): Promise; searchField(boardId: string, fieldName: string): Promise; update(boardId: string, params: any): Promise; del(boardId: string): Promise; searchCards(boardId: string): Promise; searchCardsFilter(boardId: string, filter: string): Promise; searchChecklists(boardId: string): Promise; searchCustomField(boardId: string): Promise; searchLabels(boardId: string): Promise; searchLists(boardId: string): Promise; searchListsFilter(boardId: string, filter: string): Promise; searchMembers(boardId: string): Promise; searchMemberships(boardId: string): Promise; searchPlugins(boardId: string): Promise; searchCardsByCardId(boardId: string, cardId: string): Promise; } declare class TrelloCard { create(params: any): Promise; search(cardId: string): Promise; searchField(cardId: string, fieldName: string): Promise; update(cardId: string, params: any): Promise; del(cardId: string): Promise; setCustomField(cardId: string, customFieldId: string): Promise; searchActions(cardId: string): Promise; searchAttachments(cardId: string): Promise; searchAttachmentByAttachmentId(cardId: string, attachmentId: string): Promise; searchBoard(cardId: string): Promise; searchCheckItemStates(cardId: string): Promise; searchChecklists(cardId: string): Promise; searchCheckItemByCheckItemId(cardId: string, checkItemId: string): Promise; searchCustomFieldItems(cardId: string): Promise; searchList(cardId: string): Promise; searchMembers(cardId: string): Promise; searchMembersVoted(cardId: string): Promise; searchPluginData(cardId: string): Promise; searchStickers(cardId: string): Promise; searchStickersByStickerId(cardId: string, stickerId: string): Promise; } declare class TrelloChecklist { create(params: any): Promise; search(checklistId: string): Promise; searchField(checklistId: string, fieldName: string): Promise; update(checklistId: string, params: any): Promise; del(checklistId: string): Promise; } declare class TrelloCustomField { create(params: any): Promise; search(customFieldId: string): Promise; searchField(customFieldId: string, fieldName: string): Promise; update(customFieldId: string, params: any): Promise; del(customFieldId: string): Promise; } declare class TrelloEnterprise { search(enterpriseID: string): Promise; } declare class TrelloLabel { create(params: any): Promise; search(labelId: string): Promise; update(labelId: string, params: any): Promise; del(labelId: string): Promise; } declare class TrelloList { create(params: any): Promise; search(listId: string): Promise; searchField(listId: string, fieldName: string): Promise; update(listId: string, params: any): Promise; } declare class TrelloMember { search(memberId: string): Promise; searchField(memberId: string, fieldName: string): Promise; searchBoards(memberId: string): Promise; } declare class TrelloNotification { search(notificationId: string): Promise; searchField(notificationId: string, fieldName: string): Promise; update(notificationId: string, params: any): Promise; } declare class TrelloOrganization { create(params: any): Promise; search(organizationId: string): Promise; searchField(organizationId: string, fieldName: string): Promise; update(organizationId: string, params: any): Promise; del(organizationId: string): Promise; } declare class TrelloWebhook { create(params: any): Promise; search(webhookId: string): Promise; searchField(webhookId: string, fieldName: string): Promise; update(webhookId: string, params: any): Promise; del(webhookId: string): Promise; } declare class TrelloNodeApi { constructor() constructor(key: string, token: string); setApiKey(key: string): void; setOauthToken(token: string): void; action: TrelloAction; board: TrelloBoard; card: TrelloCard; checklist: TrelloChecklist; customField: TrelloCustomField; enterprise: TrelloEnterprise; label: TrelloLabel; list: TrelloList; member: TrelloMember; notification: TrelloNotification; organization: TrelloOrganization; webhook: TrelloWebhook; } declare class TrelloError extends Error { constructor(message: string); static create(options: Object): TrelloError; code?: number; } declare namespace TrelloNodeApi { } export = TrelloNodeApi;