// 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":{"x-cache":"Hit from cloudfront","content-length":"728","access-control-allow-origin":"*","content-type":"application/typescript; charset=utf-8","via":"http/2 edgeproxy-h","x-amz-server-side-encryption":"AES256","x-amz-replication-status":"COMPLETED","etag":"\"62240f93b331da76b11ef9b31df0eb6e\"","x-amz-cf-id":"pTZGklJRULLbIj9wYbbAJbSullkJA1AAr-QzV7wSNt78BeESnc8MSg==","last-modified":"Wed, 26 Jul 2023 13:23:37 GMT","x-content-type-options":"nosniff","age":"11580416","accept-ranges":"bytes","content-security-policy":"default-src 'none'; style-src 'unsafe-inline'; sandbox","cross-origin-embedder-policy":"same-origin","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","server-timing":"fetchSource;dur=28","x-amz-cf-pop":"LAX53-P1","cache-control":"public, max-age=31536000, immutable","server":"deno/gcp-us-west2","x-amz-version-id":"Ew75Cg3dq0ywMLTh6dk9M32EYmnUyfKP","date":"Mon, 19 May 2025 15:00:09 GMT","vary":"Accept-Encoding, Origin","x-frame-options":"DENY","strict-transport-security":"max-age=63072000; includeSubDomains; preload","referrer-policy":"strict-origin-when-cross-origin"},"url":"https://deno.land/std@0.196.0/path/_interface.ts","time":1759247224}