/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as PetstoreApi from "../../.."; export declare namespace Store { interface Options { environment?: core.Supplier; token?: core.Supplier; apiKey: core.Supplier; } interface RequestOptions { timeoutInSeconds?: number; maxRetries?: number; } } /** * Access to Petstore orders */ export declare class Store { protected readonly _options: Store.Options; constructor(_options: Store.Options); /** * Returns a map of status codes to quantities * * @example * await petstoreApi.store.getInventory() */ getInventory(requestOptions?: Store.RequestOptions): Promise>; /** * Place a new order in the store * * @example * await petstoreApi.store.placeOrder({ * id: 1, * petId: 1, * quantity: 1 * }) */ placeOrder(request: PetstoreApi.Order, requestOptions?: Store.RequestOptions): Promise; /** * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions. * @throws {@link PetstoreApi.BadRequestError} * @throws {@link PetstoreApi.NotFoundError} * * @example * await petstoreApi.store.getOrderById(1) */ getOrderById(orderId: number, requestOptions?: Store.RequestOptions): Promise; /** * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors * @throws {@link PetstoreApi.BadRequestError} * @throws {@link PetstoreApi.NotFoundError} * * @example * await petstoreApi.store.deleteOrder(1) */ deleteOrder(orderId: number, requestOptions?: Store.RequestOptions): Promise; protected _getAuthorizationHeader(): Promise; }