import { Context } from "../../context"; /** * Context containing properties and convenience methods related to the static site. */ export declare class ContentContext { private file; private context; /** The source directory of the main tsx entry point. */ readonly srcDir: string; /** The root directory of the project. */ readonly rootDir: string; /** Whether ginny is running in watch mode. */ readonly isWatch: boolean; /** The target environment as provided by the user. */ readonly environment: string; constructor(file: string, context: Context); /** * Resolves a filepath to an absolute path. Relative file paths * are resolved relative to the source file location. */ resolve(filepath: string): string; /** * Returns a path that can be used as a (relative) url from the * generated page to an external resource (e.g. an image). */ url(path: string): string; /** * Creates a new page context for a different file. This can be * useful when generating multiple pages (e.g. in separate folders). */ forFile(file: string): ContentContext; /** * Registers an external file that is a dependency of the page. * This is used in watch mode to trigger regeneration of files * when dependencies change. */ addDependency(dependency: string): void; }