@tokens-studio/sdk
Version:
The official SDK for Tokens Studio
27 lines • 902 B
TypeScript
import type { TypedDocumentNode } from '@graphql-typed-document-node/core';
import type { OperationVariables } from '@apollo/client/core/index.js';
export declare const runQuery: <T, Vars extends OperationVariables>(client: any, query: TypedDocumentNode<T, Vars>, variables?: Vars) => () => Promise<T>;
export declare const getOrgs: (client: any) => Promise<{
name: string;
id: string;
}[]>;
export declare const getProjects: (client: any, variables: any) => Promise<{
id: string;
name: string;
organizationId: string;
branches: {
data: Array<{
name: string;
isDefault: boolean;
}>;
};
}[]>;
export declare const getSets: (client: any, variables: any) => Promise<{
totalPages: number;
nextPage?: number | null;
data: Array<{
name: string;
raw?: any | null;
}>;
}>;
//# sourceMappingURL=queries.d.ts.map