type LinearConfigType = { apiKey?: string; teamId?: string; }; type LinearLabelType = { id?: string; name?: string; color?: string; description?: string; teamId?: string; }; type LinearTeamType = { id: string; name: string; key: string; }; type LinearProjectType = { id: string; name: string; description?: string; url: string; }; type LinearUserType = { id: string; name: string; email: string; displayName: string; }; type LinearStateType = { id?: string; name?: string; color?: string; type?: string; description?: string; position?: number; teamId?: string; }; type LinearCommentType = { id: string; body: string; createdAt: Date; user?: LinearUserType; }; type LinearPriorityType = { value: number; label: string; }; interface ILinearService { getIssue: (id: string) => Promise; getIssues: (teamId: string, filters?: Record) => Promise; createIssue: (input: Issue) => Promise; updateIssue: (id: string, input: Issue) => Promise; deleteIssue: (id: string) => Promise; getTeams: () => Promise; getProjects: (teamId?: string) => Promise; getViewer: () => Promise; getLabel: (id: string) => Promise; getLabels: (teamId?: string) => Promise; createLabel: (input: LinearLabelType) => Promise; updateLabel: (id: string, input: LinearLabelType) => Promise; deleteLabel: (id: string) => Promise; getPriorities: () => LinearPriorityType[]; getPriority: (issueId: string) => Promise; setPriority: (issueId: string, priority: number) => Promise; clearPriority: (issueId: string) => Promise; getState: (id: string) => Promise; getStates: (teamId?: string) => Promise; createState: (input: LinearStateType) => Promise; updateState: (id: string, input: LinearStateType) => Promise; deleteState: (id: string) => Promise; checkLabelById: (id: string) => Promise; checkLabelByName: (name: string, teamId?: string) => Promise; checkPriorityById: (value: number) => boolean; checkPriorityByName: (name: string) => boolean; checkStateById: (id: string) => Promise; checkStateByName: (name: string, teamId?: string) => Promise; createComment: (issueId: string, body: string) => Promise; } declare class Issue { constructor(); id?: string; title?: string; description?: string; priority?: number; url?: string; identifier?: string; createdAt?: Date; updatedAt?: Date; team?: LinearTeamType; assignee?: LinearUserType; project?: LinearProjectType; state?: LinearStateType; labels?: LinearLabelType[]; comments?: LinearCommentType[]; } import { Exception } from "@talosjs/exception"; declare class LinearException extends Exception { constructor(message: string, key: string, data?: Record); } import { AppEnv } from "@talosjs/app-env"; declare class LinearService implements ILinearService { private readonly env; private readonly client; private readonly defaultTeamId; constructor(env: AppEnv, config?: LinearConfigType); getIssue(id: string): Promise; getIssues(teamId?: string, filters?: Record): Promise; createIssue(input: Issue): Promise; updateIssue(id: string, input: Issue): Promise; deleteIssue(id: string): Promise; getTeams(): Promise; getProjects(teamId?: string): Promise; getViewer(): Promise; getLabel(id: string): Promise; getLabels(teamId?: string): Promise; createLabel(input: LinearLabelType): Promise; updateLabel(id: string, input: LinearLabelType): Promise; deleteLabel(id: string): Promise; getPriorities(): LinearPriorityType[]; getPriority(issueId: string): Promise; setPriority(issueId: string, priority: number): Promise; clearPriority(issueId: string): Promise; getState(id: string): Promise; getStates(teamId?: string): Promise; createState(input: LinearStateType): Promise; updateState(id: string, input: LinearStateType): Promise; deleteState(id: string): Promise; checkLabelById(id: string): Promise; checkLabelByName(name: string, teamId?: string): Promise; checkPriorityById(value: number): boolean; checkPriorityByName(name: string): boolean; checkStateById(id: string): Promise; checkStateByName(name: string, teamId?: string): Promise; createComment(issueId: string, body: string): Promise; } export { ILinearService, Issue, LinearCommentType, LinearConfigType, LinearException, LinearLabelType, LinearPriorityType, LinearProjectType, LinearService, LinearStateType, LinearTeamType, LinearUserType };