import { type SelectedContext } from '../user-config.js'; export type { SelectedContext }; export declare function readContext(): Promise; export declare function setContext(patch: SelectedContext): Promise; export declare function clearContext(): Promise; /** * Turn a user-supplied project reference into an absolute project directory. * * Accepts an absolute path, a path relative to the cwd, or a bare slug/name * resolved against the workspace -- so `use mini-drama` works from anywhere. * Returns the resolved path even when it holds no series.json, so `new-series` * can create one; callers that need an existing project check loadSeries(). */ export declare function resolveProjectRef(ref: string, workspaceOverride?: string): Promise; export declare class MissingContextError extends Error { constructor(message: string); } /** * Project directory for the current command: the explicit flag, else the * selected context. Throws with both remedies when neither is available. */ export declare function resolveProjectDir(explicit?: string, workspaceOverride?: string): Promise; /** Episode number for the current command: the explicit flag, else context. */ export declare function resolveEpisodeNumber(explicit?: number): Promise; //# sourceMappingURL=context.d.ts.map