@grammyjs/i18n
Version:
Internationalization plugin for grammY based on Fluent.
35 lines • 1.36 kB
TypeScript
import * as dntShim from "../../../../_dnt.shims.js";
/**
* Test whether `src` and `dest` resolve to the same location
* @param src src file path
* @param dest dest file path
*/
export declare function isSamePath(src: string | URL, dest: string | URL): boolean | void;
/**
* Test whether or not `dest` is a sub-directory of `src`
* @param src src file path
* @param dest dest file path
* @param sep path separator
*/
export declare function isSubdir(src: string | URL, dest: string | URL, sep?: string): boolean;
export type PathType = "file" | "dir" | "symlink";
/**
* Get a human readable file type string.
*
* @param fileInfo A FileInfo describes a file and is returned by `stat`,
* `lstat`
*/
export declare function getFileInfoType(fileInfo: dntShim.Deno.FileInfo): PathType | undefined;
export interface WalkEntry extends dntShim.Deno.DirEntry {
path: string;
}
/** Create WalkEntry for the `path` synchronously */
export declare function createWalkEntrySync(path: string | URL): WalkEntry;
/** Create WalkEntry for the `path` asynchronously */
export declare function createWalkEntry(path: string | URL): Promise<WalkEntry>;
/**
* Convert a URL or string to a path
* @param pathUrl A URL or string to be converted
*/
export declare function toPathString(pathUrl: string | URL): string;
//# sourceMappingURL=_util.d.ts.map