alinea
Version:
[](https://npmjs.org/package/alinea) [](https://packagephobia.com/result?p=alinea)
31 lines (30 loc) • 1.28 kB
TypeScript
import { Config } from './Config.js';
import { EntryPhase, EntryRow } from './EntryRow.js';
import { EntryUrlMeta, Type } from './Type.js';
export declare function workspaceMediaDir(config: Config, workspace: string): string;
export declare function entryInfo(fileName: string): [name: string, status: EntryPhase];
export declare function entryChildrenDir(config: Config, entry: {
workspace: string;
root: string;
locale: string | null;
path: string;
phase: EntryPhase;
}, parentPaths: Array<string>): string;
export declare function entryFilepath(config: Config, entry: {
workspace: string;
root: string;
locale: string | null;
path: string;
phase: EntryPhase;
}, parentPaths: Array<string>): string;
export declare function entryFileName(config: Config, entry: {
workspace: string;
root: string;
locale: string | null;
path: string;
phase: EntryPhase;
}, parentPaths: Array<string>): string;
export declare function entryFile(config: Config, entry: EntryRow): string;
export declare function entryUrl(type: Type, meta: EntryUrlMeta): string;
export declare function pathSuffix(path: string, conflictingPaths: Array<string>): number | undefined;
export declare function applySuffix(path: string, suffix: number): string;