import { Logger } from '@servicenow/sdk-project'; import type { Creds } from '../../auth'; type AuthArgs = { host: string; } & ({ type: 'basic'; username: string; password: string; } | { type: 'oauth'; }); export declare function auth(args: AuthArgs, logger: Logger): Promise; export declare function getNewAccessTokenIfExpired(creds: { instanceUrl: string; refresh_token: string; expires_at: number; }, logger: Logger): Promise; export type { Creds } from '../../auth';