// Copyright 2018-2024 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":{"alt-svc":"h3=\":443\"; ma=86400","access-control-allow-origin":"*","cross-origin-resource-policy":"same-origin","strict-transport-security":"max-age=63072000; includeSubDomains; preload","x-amz-server-side-encryption":"AES256","x-amz-cf-id":"QF7Lxy5BVpJJt7Dh1B16jVJ-_nGJUSZn3_flUozZhgZ3JzcmQ3pTuQ==","x-amz-version-id":"M7_4MHOlyLXyHHcF2kA1YR04KYtLeoqY","age":"168279","x-content-type-options":"nosniff","cache-control":"public, max-age=31536000, immutable","last-modified":"Thu, 22 Feb 2024 00:58:20 GMT","vary":"Accept-Encoding, Origin","x-deno-trace-id":"2c2cc4650effb92120f330cddc7268a2","cross-origin-opener-policy":"same-origin","referrer-policy":"strict-origin-when-cross-origin","content-length":"728","content-security-policy":"default-src 'none'; style-src 'unsafe-inline'; sandbox","etag":"\"33285e61aa7964241a785beaa41d5558\"","x-amz-cf-pop":"ORD56-P9","x-cache":"Hit from cloudfront","cross-origin-embedder-policy":"same-origin","via":"1.1 e0bb93c9c35817d66f6a10b94519bd8a.cloudfront.net (CloudFront),HTTP/2 ord.vultr.prod.deno-cluster.net","content-type":"application/typescript; charset=utf-8","x-frame-options":"DENY","server-timing":"fetchSource;dur=9","accept-ranges":"bytes","x-amz-replication-status":"COMPLETED","server":"AmazonS3,deployd","date":"Wed, 12 Nov 2025 18:30:31 GMT"},"url":"https://deno.land/std@0.217.0/path/_interface.ts","time":1763140508}