/** * Exits with an error when the given argument version is published, because a * published version is read-only. */ export declare function assertNotPublished(argumentId: string, version: number): Promise; /** * Exits with an error when the premise has no directory on disk. Callers pass * their own message where the wording differs from the usual one. */ export declare function assertPremiseExists(argumentId: string, version: number, premiseId: string, notFoundMessage?: string): Promise; /** * The text to show for a caught value: the message of an `Error`, or the * value converted to a string for anything else that was thrown. */ export declare function errorMessage(err: unknown): string; //# sourceMappingURL=guards.d.ts.map