import { Dict } from '../common'; import { PgAuthenticatedEndUser, PgAuthenticatedEndUserApplication, PgAuthenticatedManagementSubject } from './authentication-subject'; /** * Builds a pg settings object for the currently authenticated management subject. * Used for RLS authentication in both PostGraphile and zapatos. * * @param subject - Currently authenticated management subject. * @param dbRole - The database role to switch to * @param serviceId - The serviceId of the current service */ export declare function buildPgSettings(subject: PgAuthenticatedManagementSubject | undefined, dbRole: string, serviceId: string): Dict; /** * Builds a pg settings object for the currently authenticated management subject. Excludes permissions and tags. * Used for RLS authentication in both PostGraphile and zapatos. * * @param subject - Currently authenticated management subject. * @param dbRole - The database role to switch to */ export declare function buildPgSettings(subject: PgAuthenticatedManagementSubject | undefined, dbRole: string): Dict; /** * Builds a pg settings object for the currently authenticated management subject without role switching. * Used for RLS authentication in both PostGraphile and zapatos. * * @param subject - Currently authenticated management subject. * @param serviceId - The serviceId of the current service */ export declare function buildAuthPgSettings(subject: PgAuthenticatedManagementSubject | undefined, serviceId?: string): Dict; /** * Builds a pg settings object for the currently authenticated management subject without role switching. Excludes permissions and tags. * Used for RLS authentication in both PostGraphile and zapatos. * * @param subject - Currently authenticated management subject. * @param serviceId - The serviceId of the current service */ export declare function buildAuthPgSettings(subject: PgAuthenticatedManagementSubject | undefined): Dict; /** * Builds a pg settings object for the currently authenticated end-user or end-user application with a dedicated DB Role. * Used for End User RLS authentication in both PostGraphile and zapatos. * * @param subject - Currently Authenticated end-user or end-user application * @param dbRole - The database role to switch to */ export declare function buildEndUserAuthPgSettings(subject: PgAuthenticatedEndUser | PgAuthenticatedEndUserApplication | undefined, dbRole: string): Dict; //# sourceMappingURL=helpers.d.ts.map