import { WeavyContextType } from '../client/weavy';
import { AppType, AppTypes } from '../types/app.types';

export declare function getAppOptions<T = AppType>(weavyContext: WeavyContextType, uid: string, type: AppTypes): import('@tanstack/query-core').QueryObserverOptions<T, Error, T, T, import('@tanstack/query-core').QueryKey, never>;
export declare function getApp<T = AppType>(weavyContext: WeavyContextType, uid: string, type: AppTypes): Promise<T>;
export type MutateAppSubscribeProps = {
    subscribe: boolean;
};
export type MutateAppSubscribeContextType = {
    previousSubscribe: boolean | undefined;
    subscribe: boolean;
} | undefined;
export declare function getAppSubscribeMutationOptions(weavyContext: WeavyContextType, app: AppType): {
    mutationFn: ({ subscribe }: MutateAppSubscribeProps) => Promise<void>;
    onMutate: (variables: MutateAppSubscribeProps) => Promise<{
        previousSubscribe: boolean | undefined;
        subscribe: boolean;
    }>;
    onError(error: Error, variables: MutateAppSubscribeProps, context: MutateAppSubscribeContextType): void;
};
//# sourceMappingURL=app.d.ts.map