UNPKG

@scalar/api-client

Version:

the open source API testing client

18 lines 607 B
import { type WorkspaceStore } from '@scalar/workspace-store/client'; import { type MaybeRefOrGetter, type Ref } from 'vue'; export type Workspace = { name: string; id: string; }; export declare const useWorkspaceSelector: ({ workspaceId, }: { workspaceId: MaybeRefOrGetter<string | undefined>; }) => { activeWorkspace: Ref<Workspace | null>; workspaces: Ref<Workspace[]>; store: Ref<WorkspaceStore | null>; setWorkspaceId: (id: string) => void; createWorkspace: (props: { name: string; }) => Promise<void>; }; //# sourceMappingURL=use-workspace-selector.d.ts.map