@deep-foundation/deepcase
Version:
[](https://gitpod.io/#https://github.com/deep-foundation/deepcase) [](https://discord.gg/deep-
80 lines (79 loc) • 3.98 kB
TypeScript
import React from 'react';
import { Id, Link } from '@deep-foundation/deeplinks/imports/minilinks';
export declare const defaultLeftWidth = 10;
export declare const defaultCardWidth = 300;
export declare function useClickSelect(): [boolean, (value: boolean | import("@deep-foundation/store/store").IUseStoreSetHandler<boolean>) => any, () => any, boolean];
export declare function useTraveler(): [boolean, (value: boolean | import("@deep-foundation/store/store").IUseStoreSetHandler<boolean>) => any, () => any, boolean];
export declare function useContainer(): any[];
export declare function useForceGraph(): [string, (value: string | import("@deep-foundation/store/store").IUseStoreSetHandler<string>) => any, () => any, boolean];
export interface IInsertingCytoStore {
isNode?: boolean;
isPossibleNode?: boolean;
type_id?: Id;
toast?: any;
From?: Id;
To?: Id;
from?: Id;
to?: Id;
_selfLink?: boolean;
}
export declare function useInsertingCytoStore(): [IInsertingCytoStore, (value: IInsertingCytoStore | import("@deep-foundation/store/store").IUseStoreSetHandler<IInsertingCytoStore>) => any, () => any, boolean];
export interface IUpdatingCytoStore {
id?: Id;
toast?: any;
_selfLink?: boolean;
from?: Id;
to?: Id;
}
export declare function useUpdatingCytoStore(): [IUpdatingCytoStore, (value: IUpdatingCytoStore | import("@deep-foundation/store/store").IUseStoreSetHandler<IUpdatingCytoStore>) => any, () => any, boolean];
export declare function useScreenFind(): [any, (value: any) => any, () => any, boolean];
export declare function useSpaceId(): any[];
export declare function useWindowSize(): [{
width: number;
height: number;
}, (value: {
width: number;
height: number;
} | import("@deep-foundation/store/store").IUseStoreSetHandler<{
width: number;
height: number;
}>) => any, () => any, boolean];
export declare function useAutoFocusOnInsert(): [boolean, (value: boolean | import("@deep-foundation/store/store").IUseStoreSetHandler<boolean>) => any, () => any, boolean];
export declare function useShowExtra(): [any, (value: any) => any, () => any, boolean];
export declare function useCytoViewport<S extends {
pan: {
x: number;
y: number;
};
zoom: number;
}>(): [S, (value: S | import("@deep-foundation/store/store").IUseStoreSetHandler<S>) => any, () => any, boolean];
export declare function useShowFocus(): [any, (value: any) => any, () => any, boolean];
export declare function useShowOpened(): [any, (value: any) => any, () => any, boolean];
export declare function useCytoHandlersSwitch(): [any, (value: any) => any, () => any, boolean];
export declare function useBreadcrumbs(): [any, (value: any) => any, () => any, boolean];
export declare function useLayoutAnimation(): [any, (value: any) => any, () => any, boolean];
export declare function useReserved(): [any, (value: any) => any, () => any, boolean];
export declare function useShowTypes(): [boolean, (value: boolean | import("@deep-foundation/store/store").IUseStoreSetHandler<boolean>) => any, () => any, boolean];
export declare function useBackgroundTransparent(): [any, (value: any) => any, () => any, boolean];
export declare function useFocusMethods(): {
unfocus: (id: any) => Promise<void>;
focus: (id: any, value: {
x: number;
y: number;
z: number;
}) => Promise<void>;
};
export declare function useActiveMethods(): {
deactive: (id: Id) => Promise<void>;
find: (id: Id) => Promise<Link<Id>>;
active: (id: Id) => Promise<void>;
toggle: (id: Id) => Promise<void>;
};
export declare function useLayout(): {
setLayout(name: "cola" | "deep-d3-force"): void;
layout: any;
layoutName: string;
};
export declare function useRefAutofill<T>(value: T): React.MutableRefObject<T>;
export declare const useMediaQuery: (arg: any) => boolean[];
export declare const useAsyncState: (defaultValue: any, init: any, depends?: any[]) => any;