import * as z from "zod";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import * as components from "../components/index.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type CreateExternalTestOutRequest = (components.CreateExternalTestOutInput & {
    lessonType: "test-out";
}) | (components.CreateExternalPlacementInput & {
    lessonType: "placement";
});
export declare const CreateExternalTestOutLessonType: {
    readonly Powerpath100: "powerpath-100";
    readonly Quiz: "quiz";
    readonly TestOut: "test-out";
    readonly Placement: "placement";
};
export type CreateExternalTestOutLessonType = ClosedEnum<typeof CreateExternalTestOutLessonType>;
/**
 * Success
 */
export type CreateExternalTestOutResponse = {
    lessonType: CreateExternalTestOutLessonType;
    /**
     * The sourcedId of the created external test reference (ComponentResource)
     */
    lessonId: string;
    /**
     * The sourcedId of the component (unit) containing the test
     */
    courseComponentId: string;
    /**
     * The sourcedId of the resource representing the external test
     */
    resourceId: string;
    /**
     * The URL to the external test system
     */
    launchUrl?: string | undefined;
    /**
     * The tool provider id
     */
    toolProvider: string;
    /**
     * The ID of the test in the spreadsheet
     */
    vendorId: string;
    /**
     * The courseId to enroll the student in if they fail the placement test (optional)
     */
    courseIdOnFail?: string | null | undefined;
    /**
     * The grades for the resource
     */
    grades?: Array<number> | undefined;
};
/** @internal */
export declare const CreateExternalTestOutRequest$inboundSchema: z.ZodType<CreateExternalTestOutRequest, z.ZodTypeDef, unknown>;
/** @internal */
export type CreateExternalTestOutRequest$Outbound = (components.CreateExternalTestOutInput$Outbound & {
    lessonType: "test-out";
}) | (components.CreateExternalPlacementInput$Outbound & {
    lessonType: "placement";
});
/** @internal */
export declare const CreateExternalTestOutRequest$outboundSchema: z.ZodType<CreateExternalTestOutRequest$Outbound, z.ZodTypeDef, CreateExternalTestOutRequest>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace CreateExternalTestOutRequest$ {
    /** @deprecated use `CreateExternalTestOutRequest$inboundSchema` instead. */
    const inboundSchema: z.ZodType<CreateExternalTestOutRequest, z.ZodTypeDef, unknown>;
    /** @deprecated use `CreateExternalTestOutRequest$outboundSchema` instead. */
    const outboundSchema: z.ZodType<CreateExternalTestOutRequest$Outbound, z.ZodTypeDef, CreateExternalTestOutRequest>;
    /** @deprecated use `CreateExternalTestOutRequest$Outbound` instead. */
    type Outbound = CreateExternalTestOutRequest$Outbound;
}
export declare function createExternalTestOutRequestToJSON(createExternalTestOutRequest: CreateExternalTestOutRequest): string;
export declare function createExternalTestOutRequestFromJSON(jsonString: string): SafeParseResult<CreateExternalTestOutRequest, SDKValidationError>;
/** @internal */
export declare const CreateExternalTestOutLessonType$inboundSchema: z.ZodNativeEnum<typeof CreateExternalTestOutLessonType>;
/** @internal */
export declare const CreateExternalTestOutLessonType$outboundSchema: z.ZodNativeEnum<typeof CreateExternalTestOutLessonType>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace CreateExternalTestOutLessonType$ {
    /** @deprecated use `CreateExternalTestOutLessonType$inboundSchema` instead. */
    const inboundSchema: z.ZodNativeEnum<{
        readonly Powerpath100: "powerpath-100";
        readonly Quiz: "quiz";
        readonly TestOut: "test-out";
        readonly Placement: "placement";
    }>;
    /** @deprecated use `CreateExternalTestOutLessonType$outboundSchema` instead. */
    const outboundSchema: z.ZodNativeEnum<{
        readonly Powerpath100: "powerpath-100";
        readonly Quiz: "quiz";
        readonly TestOut: "test-out";
        readonly Placement: "placement";
    }>;
}
/** @internal */
export declare const CreateExternalTestOutResponse$inboundSchema: z.ZodType<CreateExternalTestOutResponse, z.ZodTypeDef, unknown>;
/** @internal */
export type CreateExternalTestOutResponse$Outbound = {
    lessonType: string;
    lessonId: string;
    courseComponentId: string;
    resourceId: string;
    launchUrl?: string | undefined;
    toolProvider: string;
    vendorId: string;
    courseIdOnFail?: string | null | undefined;
    grades?: Array<number> | undefined;
};
/** @internal */
export declare const CreateExternalTestOutResponse$outboundSchema: z.ZodType<CreateExternalTestOutResponse$Outbound, z.ZodTypeDef, CreateExternalTestOutResponse>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace CreateExternalTestOutResponse$ {
    /** @deprecated use `CreateExternalTestOutResponse$inboundSchema` instead. */
    const inboundSchema: z.ZodType<CreateExternalTestOutResponse, z.ZodTypeDef, unknown>;
    /** @deprecated use `CreateExternalTestOutResponse$outboundSchema` instead. */
    const outboundSchema: z.ZodType<CreateExternalTestOutResponse$Outbound, z.ZodTypeDef, CreateExternalTestOutResponse>;
    /** @deprecated use `CreateExternalTestOutResponse$Outbound` instead. */
    type Outbound = CreateExternalTestOutResponse$Outbound;
}
export declare function createExternalTestOutResponseToJSON(createExternalTestOutResponse: CreateExternalTestOutResponse): string;
export declare function createExternalTestOutResponseFromJSON(jsonString: string): SafeParseResult<CreateExternalTestOutResponse, SDKValidationError>;
//# sourceMappingURL=createexternaltestout.d.ts.map