import { PowerPathCore } from "../core.js";
import { RequestOptions } from "../lib/sdks.js";
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
import * as errors from "../models/errors/index.js";
import { PowerPathError } from "../models/errors/powerpatherror.js";
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
import * as operations from "../models/operations/index.js";
import { APIPromise } from "../types/async.js";
import { Result } from "../types/fp.js";
/**
 * Import external test assignment results
 *
 * @remarks
 * Retrieves and stores the results of the external test assignment:
 * - Applies to both 'test-out' and 'placement' lessons.
 *
 * This logic changes depending on the stored "toolProvider" of the lesson:
 * - For "edulastic" (currently the only one supported):
 *
 *   - If the lesson is already finalized, no data import is performed.
 *   - If the lesson is not finalized, this will start populating the test and question results with available data, including question scores and feedback. The test will then be deemed finalized when all questions have been answered and the test grade is "GRADED".
 *
 * Will fail if:
 * - The lesson is not an external "test-out" or "placement", or the student does not exist
 * - Credentials for data consumption are not available in the test result of this student (meaning a previous test assignment was not made)
 * - Any other problem on the Edulastic API being used that may happen
 *
 * The actual test results can be retrieved by using the "getAssessmentProgress" endpoint.
 *
 * A 'Lesson' in this context is a ComponentResource object which has a Resource object with lessonType = "test-out" or "placement" associated with it.
 */
export declare function powerPathCourseMasteryImportExternalTestAssignmentResults(client: PowerPathCore, request: operations.ImportExternalTestAssignmentResultsRequest, options?: RequestOptions): APIPromise<Result<operations.ImportExternalTestAssignmentResultsResponse, errors.BadRequestResponseError | errors.UnauthorizedRequestResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.UnprocessableEntityResponseError | errors.TooManyRequestsResponseError | errors.InternalServerErrorResponse | PowerPathError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
//# sourceMappingURL=powerPathCourseMasteryImportExternalTestAssignmentResults.d.ts.map