import { SDKCore } from "../core.js"; import { RequestOptions } from "../lib/sdks.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/errors/httpclienterrors.js"; import { SDKError } from "../sdk/models/errors/sdkerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import * as operations from "../sdk/models/operations/index.js"; import { Result } from "../sdk/types/fp.js"; /** * Completes a direct external upload * * @remarks * Completes an external upload initialized with /get-presigned-put. The * file will be moved from its temporary location in external storage to * a final destination in the S3 bucket. An Upload record will also be * created in the database in most cases. * * If a sha1-checksum was provided in the initial request it will also * be compared with the uploaded file in storage to make sure the same * file was uploaded. The file size will be compared for the same reason. * * You must have the correct permissions and CORS settings configured in your * external provider. We support AWS S3 as the default. See: * * https://meta.discourse.org/t/-/210469#s3-multipart-direct-uploads-4. * * An external file store must be set up and `enable_direct_s3_uploads` must * be set to true for this endpoint to function. */ export declare function uploadsCompleteExternalUpload(client$: SDKCore, request?: operations.CompleteExternalUploadRequestBody | undefined, options?: RequestOptions): Promise>; //# sourceMappingURL=uploadsCompleteExternalUpload.d.ts.map