Merge commit 'd803bfe2b1fe7f5e219e50ac20d6801a0a58ac75' as 'vendor/ruvector'

This commit is contained in:
ruv
2026-02-28 14:39:40 -05:00
7854 changed files with 3522914 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
/**
* React Hook Example
*
* This example shows how to use Cognitum Gate in React applications
* with a custom hook for action permission.
*
* Usage in your React app:
* import { useGate, GateProvider } from './react-hook';
*/
import { ReactNode } from 'react';
interface GateProviderProps {
children: ReactNode;
config?: {
minCut?: number;
maxShift?: number;
storage?: 'memory' | 'indexeddb';
};
}
export declare function GateProvider({ children, config }: GateProviderProps): any;
export declare function useGate(): any;
export declare function usePermitAction(): {
requestPermit: any;
isLoading: any;
error: any;
lastResult: any;
isReady: any;
};
interface ProtectedButtonProps {
actionId: string;
actionType: string;
target: string;
onPermitted: (token: string) => void;
onDeferred: (sequence: number) => void;
onDenied: (reason: string) => void;
children: ReactNode;
}
export declare function ProtectedButton({ actionId, actionType, target, onPermitted, onDeferred, onDenied, children, }: ProtectedButtonProps): any;
export declare function ExampleApp(): any;
export default ExampleApp;
//# sourceMappingURL=react-hook.d.ts.map