import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient"; import type { ListChannelsRequest, ListChannelsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListChannelsCommand}. */ export interface ListChannelsCommandInput extends ListChannelsRequest { } /** * @public * * The output of {@link ListChannelsCommand}. */ export interface ListChannelsCommandOutput extends ListChannelsResponse, __MetadataBearer { } declare const ListChannelsCommand_base: { new (input: ListChannelsCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [ListChannelsCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Lists the channels in the current account, and their source names. *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudTrailClient, ListChannelsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import * // const { CloudTrailClient, ListChannelsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import * // import type { CloudTrailClientConfig } from "@aws-sdk/client-cloudtrail"; * const config = {}; // type is CloudTrailClientConfig * const client = new CloudTrailClient(config); * const input = { // ListChannelsRequest * MaxResults: Number("int"), * NextToken: "STRING_VALUE", * }; * const command = new ListChannelsCommand(input); * const response = await client.send(command); * // { // ListChannelsResponse * // Channels: [ // Channels * // { // Channel * // ChannelArn: "STRING_VALUE", * // Name: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListChannelsCommandInput - {@link ListChannelsCommandInput} * @returns {@link ListChannelsCommandOutput} * @see {@link ListChannelsCommandInput} for command's `input` shape. * @see {@link ListChannelsCommandOutput} for command's `response` shape. * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape. * * @throws {@link InvalidNextTokenException} (client fault) *

A token that is not valid, or a token that was previously used in a request with * different parameters. This exception is thrown if the token is not valid.

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

This exception is thrown when the requested operation is not permitted.

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

This exception is thrown when the requested operation is not supported.

* * @throws {@link CloudTrailServiceException} *

Base exception class for all service exceptions from CloudTrail service.

* * * @public */ export declare class ListChannelsCommand extends ListChannelsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListChannelsRequest; output: ListChannelsResponse; }; sdk: { input: ListChannelsCommandInput; output: ListChannelsCommandOutput; }; }; }