import Logger from "saylo"; export type RequestOptions = import("https").RequestOptions; export type GetRequestorResolveParam = { data: string; response: { rawHeaders: string[]; headers: { [k: string]: string | string[] | undefined; } } }; export type GetRequestor = (uri: string, options?: RequestOptions) => Promise; export type CheckStatusFunc = () => Promise>; export type Env = { [k: string]: string | undefined; }; export type CheckStatusFactoryProps = {} & { getRequestor: GetRequestor; } & { logger: Logger; } & { env: Env; } export type CheckStatusFactory = (props: CheckStatusFactoryProps) => CheckStatusFunc; export type StatusOrError = boolean | Error; export type SessionIdOrError = string | Error; export type InitializedStatus = boolean; export type MaybeUninitializedStatus = InitializedStatus | null; export type WrappedStatus = {} & { status: T; } & { errors?: Error[]; } & { other?: O; } export type WrappedStatusE = {} & { status: T; } & { errors: Error[]; } & { other?: O; }