import { Logger } from 'tslog'; declare enum ApiResult { 'success' = "success", 'failure' = "failure" } interface IApiResponse { result: ApiResult; data: T; } interface IApiError { errorCode: number; description: string; } declare class Service { private got; private log; constructor(config: any, log: Logger); get(endpoint: string, params?: any): Promise>; } declare abstract class Endpoint { service: Service; log: Logger; constructor(service: Service, log: Logger); } interface IProgram { DegreeID: number; DegreeCode: string; CampusCode: number; CollegeCode: string; MajorCode: string; Pathway: number; DegreeLevel: number; DegreeType: number; SlateProgramMarketingName: string; ProgramStatus: string; ProgramURL: string; SlateProgramURL: string; SlateProgramVisitingGradURL: null; SlateProgramLastUpdate: string; SubmittedApplications: SubmittedApplication[]; } interface SubmittedApplication { Year: number; Quarter: number; SubmittedCount: number; GAWSuri: string; } declare class GradProgram$1 extends Endpoint { getAuthorized(): Promise>; } interface IIdOptions { id: number; } interface IProgramOptions { degreeId: number; quarter: number; year: number; } interface IApplication { ApplicationDetail: ApplicationDetail$1; Person: Person$1; } interface ApplicationDetail$1 { ApplicationID: number; SlateApplicationReferenceID: string; SlateApplicationGUID: string; CloneSourceGUID: null; ApplicationComplete: string; StatusSlate: string; ApplicationFee: number; SDBApplicationNumber: number; ApplicationYear: number; ApplicationQuarter: number; StatusSDBDate: string; StatusSDB: number; ApplicationType: string; SlatePersonReferenceID: number; Class: number; Email: string; GPAComputed: null; GPARecent: number; DegreeIDApplication: number; DegreeCodeApplication: string; ApplicationLastChangeDate: string; LastInstitutionCode: string; LastInstitutionType: number; LastInstitutionAttendedTo: string; NCRCode: number; AEPRequired: string; ClearedToTeach: string; Resident: number; SDBReject: string; SpecialProgram: null; ApplicationSubmitDate: string; PGEducation1: string; PGEducation2: string; EnglishRequirementOption: null; ECDPaymentTime: null; IsConcurrent: boolean; FirstGeneration: boolean; RequiredSpeaking: null; VisaType: null; IsVisitingGrad: boolean; SlateApplicationURL: string; Interests: any[]; Majors: Major[]; Recommendations: any[]; Materials: Material[]; Questions: any[]; } interface Major { DegreeIndex: number; DegreeID: number; DegreeCode: string; ApplicationDegreeFlag: boolean; CampusCode: number; CollegeCode: string; Major: string; Pathway: number; DegreeLevel: number; DegreeType: number; Evening: boolean; } interface Material { MaterialGUID: string; MaterialName: string; MaterialContentType: string; MaterialFileName: string; MaterialViewerURL: string; MaterialCreateDate: string; MaterialUpdateDate: string; } interface Person$1 { SlatePersonReferenceID: string; OfficialFirstName: string; OfficialMiddleName: string; OfficialLastName: string; PreferredFirstName: string; PreferredMiddleName: string; PreferredLastName: string; Pronouns: string; Sex: string; GenderOptionDescription: string; GenderDescription: null; FormerLastName1: null; FormerFirstName1: null; FormerLastName2: null; FormerFirstName2: null; Email: string; BirthCity: null; BirthCountryNameSDB: null; CitizenshipCountryNameSDB: string; BirthCountryNameGENCShort: null; BirthCountryNameISO3166: null; CitizenshipCountryNameGENCShort: string; CitizenshipCountryNameISO3166: string; NativeEnglishSpeaker: boolean; USCitizenStatus: string; Veteran: number; LastChangeDate: string; SystemKey: number; SSNLast4: string; StudentID: null; SlatePersonURL: string; Contact: Contact; Education: Education[]; Employment: Employment[]; Tests: Test[]; } interface Contact { Phone: Phone[]; Address: Address[]; } interface Address { AddressTypeName: string; AddressLine1: string; AddressLine2: null; AddressCity: string; AddressRegion: string; StateAbbreviation: string; AddressCountryNameSDB: string; AddressCountryNameGENCShort: string; AddressCountryNameISO3166: string; AddressZip5: number; AddressZip4: number; AddressPostalCode: null; AddressLastChangeDate: string; } interface Phone { PhoneRank: number; PhoneNumber: string; PhoneType: string; PhoneLastChangeDate: string; } interface Education { EducationGUID: string; PESCCode: string; SDBInstitutionCode: number; InstitutionName: string; AttendedFromYear: number; AttendedFromMonth: number; AttendedToYear: number; AttendedToMonth: number; DegreeEarnedYear: number; DegreeEarnedMonth: number; Major: string; GPAMajor: null; GPA: number; GPACalculated: null; InstitutionLocationRegion: string; InstitutionLocation: string; InstitutionState: string; InstitutionCountryNameSDB: string; InstitutionCountryNameISO3166: string; InstitutionCountryNameGENCShort: string; DegreeType: string; DegreeReported: string; DegreeTranscriptRequired: null; DegreeTranscriptSufficent: null; UnofficialTranscriptName: string; UnofficialTranscriptDocumentType: string; UnofficialTranscriptReceiveDate: string; UnofficialTranscriptUpdateDate: string; UnofficialTranscriptViewerURL: string; OfficialTranscriptName: null; OfficialTranscriptDocumentType: null; OfficialTranscriptReceiveDate: null; OfficialTranscriptUpdateDate: null; OfficialTranscriptViewerURL: null; } interface Employment { EmploymentGUID: string; EmployerName: string; EmployeeTitle: string; EmploymentStartDate: string; EmploymentEndDate?: string; EmployerCity: string; EmployerRegion: string; EmployerCountryNameSDB: string; EmployerCountryNameISO3166: string; EmployerCountryNameGENCShort: string; EmploymentPaidType: string; EmploymentDescription: string; EmploymentTotalHoursInRole: number; EmploymentHoursPerWeek: string; EmploymentRank: number; GeneticCounselingExperience?: any; } interface Test { TestKey: string; SDBTestCode: string; SDBTestTypeName: string; SlateTestID: string; SlateTestName: string; SlateTestSubTypeCode: string; TestDate: string; TestEnteredDate: string; Scores: Score[]; } interface Score { TestComponent: string; TestScore: number; TestPercentile: number; } declare class Application$1 extends Endpoint { getById(options: IIdOptions): Promise>; getByProgram(options: IProgramOptions): Promise>; } interface IApplicant { ApplicationDetail: ApplicationDetail; PersonDetail: PersonDetail; } interface PersonDetail { OfficialFirstName: string; OfficialLastName: string; PreferredFirstName: string; PreferredLastName: string; SystemKey: number; StudentID?: any; SlatePersonURL: string; } interface ApplicationDetail { ApplicationID: number; SlateApplicationReferenceID: string; SlateApplicationGUID: string; SlatePersonReferenceID: string; CloneSourceGUID?: any; StatusSlate: string; StatusSDB: number; SDBApplicationNumber: number; ApplicationYear: number; ApplicationQuarter: number; DegreeIDApplication: number; DegreeCodeApplication: string; ApplicationLastChangeDate: string; IsVisitingGrad: boolean; SlateApplicationURL: string; SlateReaderURL: string; GAWSApplicationURL: string; ECDPaymentTime?: any; OperationalReviewNotes?: any; Interests: any[]; } interface IDegreeOptions { degreeId?: number; degreeCode?: string; year?: number; quarter?: number; verbose?: true | false; } declare class Applicant extends Endpoint { get(options?: IDegreeOptions): Promise>; } interface IUnsubmitted { Application: Application; Person: Person; } interface Application { ApplicationID: number; SlateApplicationReferenceID: string; SlateApplicationGUID: string; CloneSourceGUID: null; ApplicationYear: number; ApplicationQuarter: number; ApplicationType: string; SlatePersonReferenceID: number; Email: string; DegreeIDApplication: number; DegreeCodeApplication: string; ApplicationLastChangeDate: string; ApplicationSubmitDate: null; IsVisitingGrad: boolean; ApplicationStartDate: string; } interface Person { OfficialFirstName: string; OfficialMiddleName: null; OfficialLastName: string; PreferredFirstName: string; PreferredMiddleName: null; PreferredLastName: string; LastChangeDate: string; } declare class GradProgram extends Endpoint { getAll(): Promise>; getByProgramId(degreeId: number): Promise>; getByProgramQuarter(program: IProgramOptions): Promise>; } type LogLevel = 'silly' | 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal'; interface IGawsOptions { organizationName: string; baseUrl: string; auth: { cert: string | Buffer; key: string | Buffer; }; logLevel?: LogLevel; } interface IAuth { cert: string | Buffer; key: string | Buffer; } interface ICertFetcher { readCertificate(config?: any): Promise; } declare class CertFetcherManager { private fetchers; addFetcher(name: string, fetcher: ICertFetcher): void; getFetcher(name: string): ICertFetcher; } declare class Gaws { private service; private log; programs: GradProgram$1; applications: Application$1; applicants: Applicant; unsubmitted: GradProgram; constructor(options: IGawsOptions); } export { CertFetcherManager, Gaws, type IApiError, type IApplicant, type IApplication, type IAuth, type ICertFetcher, type IProgram, type IUnsubmitted };