import { Scans } from './Scans'; import { Issue, ScanState, Severity } from './models'; import { Logger } from '@sectester/core'; export interface ScanOptions { id: string; scans: Scans; logger?: Logger; pollingInterval?: number; timeout?: number; baseURL?: string; } export declare class Scan { readonly id: string; private readonly ACTIVE_STATUSES; private readonly DONE_STATUSES; private readonly scans; private readonly pollingInterval; private readonly logger; private readonly timeout; private state; private readonly baseURL?; constructor({ id, scans, logger, timeout, baseURL, pollingInterval }: ScanOptions); get active(): boolean; get done(): boolean; get link(): string; issues(): Promise; status(): AsyncIterableIterator; expect(expectation: Severity | ((scan: Scan) => unknown), options?: { failFast?: boolean; }): Promise; dispose(): Promise; stop(): Promise; private assert; private refreshState; private changingStatus; private createPredicate; private satisfyExpectation; }