import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DetectDominantLanguageRequest, DetectDominantLanguageResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DetectDominantLanguageCommand}. */ export interface DetectDominantLanguageCommandInput extends DetectDominantLanguageRequest { } /** * @public * * The output of {@link DetectDominantLanguageCommand}. */ export interface DetectDominantLanguageCommandOutput extends DetectDominantLanguageResponse, __MetadataBearer { } declare const DetectDominantLanguageCommand_base: { new (input: DetectDominantLanguageCommandInput): import("@smithy/core/client").CommandImpl; new (input: DetectDominantLanguageCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Determines the dominant language of the input text. For a list of languages that Amazon * Comprehend can detect, see Amazon Comprehend Supported Languages.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ComprehendClient, DetectDominantLanguageCommand } from "@aws-sdk/client-comprehend"; // ES Modules import * // const { ComprehendClient, DetectDominantLanguageCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import * // import type { ComprehendClientConfig } from "@aws-sdk/client-comprehend"; * const config = {}; // type is ComprehendClientConfig * const client = new ComprehendClient(config); * const input = { // DetectDominantLanguageRequest * Text: "STRING_VALUE", // required * }; * const command = new DetectDominantLanguageCommand(input); * const response = await client.send(command); * // { // DetectDominantLanguageResponse * // Languages: [ // ListOfDominantLanguages * // { // DominantLanguage * // LanguageCode: "STRING_VALUE", * // Score: Number("float"), * // }, * // ], * // }; * * ``` * * @param DetectDominantLanguageCommandInput - {@link DetectDominantLanguageCommandInput} * @returns {@link DetectDominantLanguageCommandOutput} * @see {@link DetectDominantLanguageCommandInput} for command's `input` shape. * @see {@link DetectDominantLanguageCommandOutput} for command's `response` shape. * @see {@link ComprehendClientResolvedConfig | config} for ComprehendClient's `config` shape. * * @throws {@link InternalServerException} (server fault) *

An internal server error occurred. Retry your request.

* * @throws {@link InvalidRequestException} (client fault) *

The request is invalid.

* * @throws {@link TextSizeLimitExceededException} (client fault) *

The size of the input text exceeds the limit. Use a smaller document.

* * @throws {@link ComprehendServiceException} *

Base exception class for all service exceptions from Comprehend service.

* * * @public */ export declare class DetectDominantLanguageCommand extends DetectDominantLanguageCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DetectDominantLanguageRequest; output: DetectDominantLanguageResponse; }; sdk: { input: DetectDominantLanguageCommandInput; output: DetectDominantLanguageCommandOutput; }; }; }