@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
13 lines • 669 B
TypeScript
import type { GhConfig } from './config.ts';
/**
* Expand gh's repository placeholders in an endpoint or field value.
*
* Real gh fills `{owner}`, `{repo}` and `{branch}` from the repository of
* the current directory, which is what most of its own documented examples
* are written with (`gh api repos/{owner}/{repo}/releases`); an install's
* `repo`/`branch` are the workspace's stand-in for that. Any other brace
* pair is left exactly as typed and reaches the wire, which is gh's
* behavior too: it is a path segment, not a template error.
*/
export declare function expand(text: string, config: GhConfig): string;
//# sourceMappingURL=placeholder.d.ts.map