import Timedoctor, { TDResponse } from "./Timedoctor"; import { UserResponse } from "./Users"; export declare type CompanyItem = { user_id: number; company_id: number; type: string; company_name: string; url: string; company_time_zone_id: number; company_time_zone: string; company_subdomain: string; company_logo: string; new_user: 0 | 1; force_project: boolean; managers_add_edit_projects: boolean; }; export declare type CompaniesResponse = { user: UserResponse; accounts: CompanyItem[]; }; /** * @class Companies * @property td {Timedoctor} * @property get {function()} * @property set {function(company_id)} */ export default class Companies { /** * @param td {Timedoctor} */ td: Timedoctor; constructor(td: Timedoctor); /** * Get companies that the token can access * (this is the only endpoint accessible without company_id) * @return {Promise} */ get(): Promise>; /** * Set the company_id * @param company_id {number} */ set(company_id: string): void; }