// Copyright 2026 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

/**
 * Gitea TypeScript/JavaScript SDK
 *
 * A client library for the Gitea API with chunked upload support.
 *
 * @example
 * ```typescript
 * import { GiteaClient } from '@gitea/sdk';
 *
 * const client = new GiteaClient({
 *   baseUrl: 'https://gitea.example.com',
 *   token: 'your_token'
 * });
 *
 * const user = await client.getCurrentUser();
 * console.log(`Logged in as ${user.login}`);
 * ```
 *
 * @packageDocumentation
 */

export { GiteaClient, GiteaClientOptions } from './client';
export {
  User,
  Repository,
  Release,
  Attachment,
  UploadSession,
  UploadResult,
  Progress,
} from './types';
export {
  GiteaError,
  APIError,
  AuthenticationError,
  NotFoundError,
  ValidationError,
  UploadError,
} from './errors';
export {
  ChunkedUpload,
  ChunkedUploadOptions,
  ProgressCallback,
} from './upload';
