import {UserProfile} from 'app/common/LoginSessionAPI'; export interface ITestingHooks { getOwnPort(): number; getPort(): number; updateAuthToken(instId: string, authToken: string): Promise; getAuthToken(instId: string): Promise; useTestToken(instId: string, token: string): Promise; setLoginSessionProfile(gristSidCookie: string, profile: UserProfile|null, org?: string): Promise; setServerVersion(version: string|null): Promise; disconnectClients(): Promise; commShutdown(): Promise; commRestart(): Promise; commSetClientPersistence(ttlMs: number): Promise; closeDocs(): Promise; setDocWorkerActivation(workerId: string, active: 'active'|'inactive'|'crash'): Promise; flushAuthorizerCache(): Promise; getDocClientCounts(): Promise>; setActiveDocTimeout(seconds: number): Promise; }