/**
 * Custom query operations
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import { OrmClient } from '../client';
import { QueryBuilder } from '../query-builder';
import type { InferSelectResult, StrictSelect } from '../select-types';
import type { User, UserSelect, AppPermissionConnection, OrgPermissionConnection } from '../input-types';
export interface RequireStepUpVariables {
    stepUpType?: string;
}
export interface AppPermissionsGetPaddedMaskVariables {
    mask?: string;
}
export interface OrgPermissionsGetPaddedMaskVariables {
    mask?: string;
}
export interface ApplyRegistryDefaultsVariables {
    nodeType?: string;
    data?: unknown;
}
/**
 * Variables for resolveBlueprintField
 * Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.
 */
export interface ResolveBlueprintFieldVariables {
    databaseId?: string;
    tableId?: string;
    fieldName?: string;
}
/**
 * Variables for resolveBlueprintTable
 * Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error.
 */
export interface ResolveBlueprintTableVariables {
    databaseId?: string;
    tableName?: string;
    schemaName?: string;
    tableMap?: unknown;
    defaultSchemaId?: string;
}
export interface OrgIsManagerOfVariables {
    pEntityId?: string;
    pManagerId?: string;
    pUserId?: string;
    pMaxDepth?: number;
}
export interface AppPermissionsGetMaskVariables {
    ids?: string[];
}
export interface OrgPermissionsGetMaskVariables {
    ids?: string[];
}
export interface AppPermissionsGetMaskByNamesVariables {
    names?: string[];
}
export interface OrgPermissionsGetMaskByNamesVariables {
    names?: string[];
}
export interface AppPermissionsGetByMaskVariables {
    mask?: string;
    /** Only read the first `n` values of the set. */
    first?: number;
    /**
     * Skip the first `n` values from our `after` cursor, an alternative to cursor
     * based pagination. May not be used with `last`.
     */
    offset?: number;
    /** Read all values in the set after (below) this cursor. */
    after?: string;
}
export interface OrgPermissionsGetByMaskVariables {
    mask?: string;
    /** Only read the first `n` values of the set. */
    first?: number;
    /**
     * Skip the first `n` values from our `after` cursor, an alternative to cursor
     * based pagination. May not be used with `last`.
     */
    offset?: number;
    /** Read all values in the set after (below) this cursor. */
    after?: string;
}
export declare function createQueryOperations(client: OrmClient): {
    currentUserId: (options?: {
        select?: Record<string, unknown>;
    }) => QueryBuilder<{
        currentUserId: string | null;
    }>;
    currentUserAgent: (options?: {
        select?: Record<string, unknown>;
    }) => QueryBuilder<{
        currentUserAgent: string | null;
    }>;
    currentIpAddress: (options?: {
        select?: Record<string, unknown>;
    }) => QueryBuilder<{
        currentIpAddress: string | null;
    }>;
    requireStepUp: (args: RequireStepUpVariables, options?: {
        select?: Record<string, unknown>;
    }) => QueryBuilder<{
        requireStepUp: boolean | null;
    }>;
    appPermissionsGetPaddedMask: (args: AppPermissionsGetPaddedMaskVariables, options?: {
        select?: Record<string, unknown>;
    }) => QueryBuilder<{
        appPermissionsGetPaddedMask: string | null;
    }>;
    orgPermissionsGetPaddedMask: (args: OrgPermissionsGetPaddedMaskVariables, options?: {
        select?: Record<string, unknown>;
    }) => QueryBuilder<{
        orgPermissionsGetPaddedMask: string | null;
    }>;
    applyRegistryDefaults: (args: ApplyRegistryDefaultsVariables, options?: {
        select?: Record<string, unknown>;
    }) => QueryBuilder<{
        applyRegistryDefaults: unknown | null;
    }>;
    resolveBlueprintField: (args: ResolveBlueprintFieldVariables, options?: {
        select?: Record<string, unknown>;
    }) => QueryBuilder<{
        resolveBlueprintField: string | null;
    }>;
    resolveBlueprintTable: (args: ResolveBlueprintTableVariables, options?: {
        select?: Record<string, unknown>;
    }) => QueryBuilder<{
        resolveBlueprintTable: string | null;
    }>;
    orgIsManagerOf: (args: OrgIsManagerOfVariables, options?: {
        select?: Record<string, unknown>;
    }) => QueryBuilder<{
        orgIsManagerOf: boolean | null;
    }>;
    appPermissionsGetMask: (args: AppPermissionsGetMaskVariables, options?: {
        select?: Record<string, unknown>;
    }) => QueryBuilder<{
        appPermissionsGetMask: string | null;
    }>;
    orgPermissionsGetMask: (args: OrgPermissionsGetMaskVariables, options?: {
        select?: Record<string, unknown>;
    }) => QueryBuilder<{
        orgPermissionsGetMask: string | null;
    }>;
    appPermissionsGetMaskByNames: (args: AppPermissionsGetMaskByNamesVariables, options?: {
        select?: Record<string, unknown>;
    }) => QueryBuilder<{
        appPermissionsGetMaskByNames: string | null;
    }>;
    orgPermissionsGetMaskByNames: (args: OrgPermissionsGetMaskByNamesVariables, options?: {
        select?: Record<string, unknown>;
    }) => QueryBuilder<{
        orgPermissionsGetMaskByNames: string | null;
    }>;
    appPermissionsGetByMask: (args: AppPermissionsGetByMaskVariables, options?: {
        select?: Record<string, unknown>;
    }) => QueryBuilder<{
        appPermissionsGetByMask: AppPermissionConnection | null;
    }>;
    orgPermissionsGetByMask: (args: OrgPermissionsGetByMaskVariables, options?: {
        select?: Record<string, unknown>;
    }) => QueryBuilder<{
        orgPermissionsGetByMask: OrgPermissionConnection | null;
    }>;
    currentUser: <S extends UserSelect>(options: {
        select: S;
    } & StrictSelect<S, UserSelect>) => QueryBuilder<{
        currentUser: InferSelectResult<User, S> | null;
    }>;
};
