alinea
Version:
Headless git-based CMS
33 lines (32 loc) • 1.4 kB
TypeScript
import type { Config } from '../Config.js';
import { type EntryStatus } from '../Entry.js';
import { type Entry } from '../Entry.js';
import type { EntryUrlMeta, Type } from '../Type.js';
export declare function workspaceMediaDir(config: Config, workspace: string): string;
export declare function entryInfo(fileName: string): [name: string, status: EntryStatus];
export declare function entryChildrenDir(config: Config, entry: {
workspace: string;
root: string;
locale: string | null;
path: string;
status: EntryStatus;
}, parentPaths: Array<string>): string;
export declare function entryFilepath(config: Config, entry: {
workspace: string;
root: string;
locale: string | null;
path: string;
status: EntryStatus;
}, parentPaths: Array<string>): string;
export declare function entryFileName(config: Config, entry: {
workspace: string;
root: string;
locale: string | null;
path: string;
status: EntryStatus;
}, parentPaths: Array<string>): string;
export declare function entryFile(config: Config, entry: Entry): 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;
export declare function fileVersions(file: string): string[];