declare module 'ali-oss' {
  interface ClientOptions {
    region?: string;
    endpoint?: string;
    accessKeyId: string;
    accessKeySecret: string;
    stsToken?: string;
    bucket?: string;
    internal?: boolean;
    secure?: boolean;
  }

  interface HeadObjectResult {
    res?: {
      headers?: Record<string, string | string[]>;
      status?: number;
    };
    [key: string]: unknown;
  }

  export default class OSS {
    constructor(options: ClientOptions);
    head(name: string): Promise<HeadObjectResult>;
  }
}
