1 | import { Project } from "../Project";
|
2 | /**
|
3 | * Pass through validating something. Used to assert invariants in editors.
|
4 | * Reject if invariant isn't satisfied.
|
5 | * @param {Project} p
|
6 | * @param {string} path
|
7 | * @param assertion to satisfy invariant
|
8 | * @param err custom error message, if supplied
|
9 | * @return {Promise<Project>}
|
10 | */
|
11 | export declare function assertContent(p: Project, path: string, assertion: (content: string) => boolean, err?: string): Promise<Project>;
|
12 | export declare function assertContentIncludes(p: Project, path: string, what: string): Promise<Project>;
|
13 | export declare function assertFileExists(p: Project, path: string): Promise<Project>;
|