/**
 * Scoped sub-identities (API keys and agents) with precomputed SPRT
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
import type { PrincipalSelect, PrincipalWithRelations, CreatePrincipalInput } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { PrincipalSelect, PrincipalWithRelations, CreatePrincipalInput, } from '../../orm/input-types';
/**
 * Scoped sub-identities (API keys and agents) with precomputed SPRT
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useCreatePrincipalMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ name: 'New item' });
 * ```
 */
export declare function useCreatePrincipalMutation<S extends PrincipalSelect>(params: {
    selection: {
        fields: S & PrincipalSelect;
    } & HookStrictSelect<NoInfer<S>, PrincipalSelect>;
} & Omit<UseMutationOptions<{
    createPrincipal: {
        principal: InferSelectResult<PrincipalWithRelations, S>;
    };
}, Error, CreatePrincipalInput['principal']>, 'mutationFn'>): UseMutationResult<{
    createPrincipal: {
        principal: InferSelectResult<PrincipalWithRelations, S>;
    };
}, Error, CreatePrincipalInput['principal']>;
