import { type FirebaseAuthOwnershipKey, type FirebaseAuthUserId, type FirestoreQueryConstraint } from '../../common'; import { type OidcEntryType } from './oidcmodel'; /** * Query for OidcEntry documents with a specific type. * * @param type - The OIDC entry type to filter by. * @returns Firestore query constraints for the given type. * * @dbxModelFirebaseIndex * @dbxModelFirebaseIndexModel OidcEntry * @dbxModelFirebaseIndexScope COLLECTION * @dbxModelFirebaseIndexCategory lookup */ export declare function oidcEntriesWithTypeQuery(type: OidcEntryType): FirestoreQueryConstraint[]; /** * Query for OidcEntry documents with a specific type and userCode. * * @param type - The OIDC entry type to filter by. * @param userCode - The user code to match. * @returns Firestore query constraints for the given type and userCode. * * @dbxModelFirebaseIndex * @dbxModelFirebaseIndexModel OidcEntry * @dbxModelFirebaseIndexScope COLLECTION * @dbxModelFirebaseIndexCategory lookup */ export declare function oidcEntriesByUserCodeQuery(type: OidcEntryType, userCode: string): FirestoreQueryConstraint[]; /** * Query for OidcEntry documents with a specific type and uid. * * @param type - The OIDC entry type to filter by. * @param uid - The Firebase user ID to match. * @returns Firestore query constraints for the given type and uid. * * @dbxModelFirebaseIndex * @dbxModelFirebaseIndexModel OidcEntry * @dbxModelFirebaseIndexScope COLLECTION * @dbxModelFirebaseIndexCategory lookup */ export declare function oidcEntriesByUidQuery(type: OidcEntryType, uid: FirebaseAuthUserId): FirestoreQueryConstraint[]; /** * Query for OidcEntry documents with a specific type and grantId. * * @param type - The OIDC entry type to filter by. * @param grantId - The grant ID to match. * @returns Firestore query constraints for the given type and grantId. * * @dbxModelFirebaseIndex * @dbxModelFirebaseIndexModel OidcEntry * @dbxModelFirebaseIndexScope COLLECTION * @dbxModelFirebaseIndexCategory lookup */ export declare function oidcEntriesByGrantIdQuery(type: OidcEntryType, grantId: string): FirestoreQueryConstraint[]; /** * Query for OidcEntry documents with a specific type and clientId. * * @param type - The OIDC entry type to filter by. * @param clientId - The OAuth client ID to match. * @returns Firestore query constraints for the given type and clientId. * * @dbxModelFirebaseIndex * @dbxModelFirebaseIndexModel OidcEntry * @dbxModelFirebaseIndexScope COLLECTION * @dbxModelFirebaseIndexCategory lookup */ export declare function oidcEntriesByClientIdQuery(type: OidcEntryType, clientId: string): FirestoreQueryConstraint[]; /** * Query for OidcEntry Client documents owned by a specific user. * * @param ownershipKey - The ownership key identifying the owner. * @returns Firestore query constraints for Client entries matching the ownership key. * * @dbxModelFirebaseIndex * @dbxModelFirebaseIndexModel OidcEntry * @dbxModelFirebaseIndexScope COLLECTION * @dbxModelFirebaseIndexCategory lookup */ export declare function oidcClientEntriesByOwnerQuery(ownershipKey: FirebaseAuthOwnershipKey): FirestoreQueryConstraint[]; /** * Query for OidcEntry Grant documents issued to a specific user. * * Used by the "apps with access to my account" UI to list every outstanding * grant the signed-in user has authorized. * * @param uid - The Firebase user id the grants were issued to. * @returns Firestore query constraints for Grant entries matching the uid. * * @dbxModelFirebaseIndex * @dbxModelFirebaseIndexModel OidcEntry * @dbxModelFirebaseIndexScope COLLECTION * @dbxModelFirebaseIndexCategory lookup * @dbxModelFirebaseIndexDispatcher true */ export declare function oidcGrantEntriesByUidQuery(uid: FirebaseAuthUserId): FirestoreQueryConstraint[];