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 { ListTrailsRequest, ListTrailsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListTrailsCommand}. */ export interface ListTrailsCommandInput extends ListTrailsRequest { } /** * @public * * The output of {@link ListTrailsCommand}. */ export interface ListTrailsCommandOutput extends ListTrailsResponse, __MetadataBearer { } declare const ListTrailsCommand_base: { new (input: ListTrailsCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [ListTrailsCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Lists trails that are in the current account.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudTrailClient, ListTrailsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import * // const { CloudTrailClient, ListTrailsCommand } = 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 = { // ListTrailsRequest * NextToken: "STRING_VALUE", * }; * const command = new ListTrailsCommand(input); * const response = await client.send(command); * // { // ListTrailsResponse * // Trails: [ // Trails * // { // TrailInfo * // TrailARN: "STRING_VALUE", * // Name: "STRING_VALUE", * // HomeRegion: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListTrailsCommandInput - {@link ListTrailsCommandInput} * @returns {@link ListTrailsCommandOutput} * @see {@link ListTrailsCommandInput} for command's `input` shape. * @see {@link ListTrailsCommandOutput} for command's `response` shape. * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape. * * @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 ListTrailsCommand extends ListTrailsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListTrailsRequest; output: ListTrailsResponse; }; sdk: { input: ListTrailsCommandInput; output: ListTrailsCommandOutput; }; }; }