// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.

/**
 * A parsed path object generated by path.parse() or consumed by path.format().
 */
export interface ParsedPath {
  /**
   * The root of the path such as '/' or 'c:\'
   */
  root: string;
  /**
   * The full directory path such as '/home/user/dir' or 'c:\path\dir'
   */
  dir: string;
  /**
   * The file name including extension (if any) such as 'index.html'
   */
  base: string;
  /**
   * The file extension (if any) such as '.html'
   */
  ext: string;
  /**
   * The file name without extension (if any) such as 'index'
   */
  name: string;
}

export type FormatInputPathObject = Partial<ParsedPath>;

// denoCacheMetadata={"headers":{"date":"Wed, 12 Nov 2025 18:14:56 GMT","x-amz-cf-pop":"ORD56-P9","server-timing":"fetchSource;dur=8","via":"1.1 b3c2adff9521923468c0ecb022a29278.cloudfront.net (CloudFront),HTTP/2 ord.vultr.prod.deno-cluster.net","access-control-allow-origin":"*","x-content-type-options":"nosniff","x-deno-trace-id":"b03f525d89ef6cf69818f3005e031624","content-length":"728","cross-origin-opener-policy":"same-origin","x-cache":"Hit from cloudfront","x-amz-version-id":"Ew75Cg3dq0ywMLTh6dk9M32EYmnUyfKP","accept-ranges":"bytes","alt-svc":"h3=\":443\"; ma=86400","strict-transport-security":"max-age=63072000; includeSubDomains; preload","x-amz-cf-id":"2aip0TUpSaiWgDWaSGGGdvCcJWwYyREoRtRRknmukmc5iXWRsKvW7w==","cache-control":"public, max-age=31536000, immutable","vary":"Accept-Encoding, Origin","x-amz-server-side-encryption":"AES256","content-security-policy":"default-src 'none'; style-src 'unsafe-inline'; sandbox","cross-origin-embedder-policy":"same-origin","etag":"\"62240f93b331da76b11ef9b31df0eb6e\"","x-amz-replication-status":"COMPLETED","x-frame-options":"DENY","cross-origin-resource-policy":"same-origin","last-modified":"Wed, 26 Jul 2023 13:23:37 GMT","server":"AmazonS3,deployd","content-type":"application/typescript; charset=utf-8","age":"169213","referrer-policy":"strict-origin-when-cross-origin"},"url":"https://deno.land/std@0.196.0/path/_interface.ts","time":1763140508}