import { PostgreSQL } from "../types";
/**
 * Call this any time about to *start* the project.
 *
 * Check for site licenses, then set the site_license field for this project.
 * The *value* for each key records what the license provides and whether or
 * not it is actually being used by the project.
 *
 * If the license provides nothing new compared to what is already provided
 * by already applied **licenses** and upgrades, then the license is *not*
 * applied.
 *
 * related issues about it's heuristic:
 * - https://github.com/sagemathinc/cocalc/issues/4979 -- do not apply a license if it does not provide upgrades
 * - https://github.com/sagemathinc/cocalc/pull/5490 -- remove a license if it is expired
 * - https://github.com/sagemathinc/cocalc/issues/5635 -- do not completely remove a license if it is still valid
 */
export declare function site_license_hook(db: PostgreSQL, project_id: string): Promise<void>;
