import { type TenantDomain } from "../schema";
/**
 * Adds a whitelisted domain. Returns null if the tenant already has that domain
 * (the (tenantId, domain) unique index would otherwise throw) so callers can turn
 * a duplicate into a 409 rather than a 500.
 */
export declare function addDomain(tenantId: string, domain: string): Promise<TenantDomain | null>;
export declare function listDomains(tenantId: string): Promise<TenantDomain[]>;
/** Tenant-scoped count -- sizes the whitelist without hauling every row. */
export declare function countDomains(tenantId: string): Promise<number>;
/** Tenant-scoped delete -- returns the removed row, or null if it wasn't this tenant's. */
export declare function deleteDomain(tenantId: string, id: string): Promise<TenantDomain | null>;
export declare function isDomainAllowed(tenantId: string, hostname: string): Promise<boolean>;
