/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments.js"; import * as core from "../../../../core/index.js"; import * as Ittybit from "../../../index.js"; export declare namespace Signatures { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; apiKey?: core.Supplier; /** Override the ACCEPT_VERSION header */ version?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; fetcher?: core.FetchFunction; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the ACCEPT_VERSION header */ version?: string | undefined; /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ headers?: Record | undefined>; } } /** * You can use the `/signatures` endpoint to generate signed URLs for files. */ export declare class Signatures { protected readonly _options: Signatures.Options; constructor(_options?: Signatures.Options); /** * You can use signatures to create signed URLs which grant access to your project's resources, without revealing your project's API key. URLs can expire after a specified time and be limited to HTTP `GET` method for read-only access, or HTTP `PUT` method for client-side uploads. * * @param {Ittybit.SignaturesCreateRequest} request * @param {Signatures.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.signatures.create({ * filename: "video.mp4", * folder: "example", * expiry: 1735689600, * method: "put" * }) */ create(request: Ittybit.SignaturesCreateRequest, requestOptions?: Signatures.RequestOptions): core.HttpResponsePromise; private __create; protected _getAuthorizationHeader(): Promise; }