import { OnProgress } from "./progress"; import { Page } from "./page"; import { Currency, CurrencyValue } from "./currency"; import { GistMetadata } from "./gist"; import { Skill } from "./skill"; export interface Task { id: string; owner: string; erc721_name: string; erc721_url: string; gist_user: string; gist_id: string; block: string | number; tx: string; ctime: number; proj_id: string | number; pullRequestCount: string | number; skillCount: string | number; metadata?: GistMetadata; } export interface TaskQuery { items: Task[]; page: Page; } export declare function createTask(options: { gistURL: string; proj_id?: string; skillIds: string[]; }, onprogress?: OnProgress): Promise; export declare function getTask(id: string): Promise; export declare function queryTasks(options: { p?: number; n?: number; owner?: string; proj_id?: string; }): Promise; export declare function getTaskOwner(id: string): Promise; export interface TaskProject { id: string; owner: string; proj_id?: string; proj_owner?: string; proj_erc_name?: string; } export declare function getTaskProject(id: string): Promise; export declare function deposit(id: string, amount: CurrencyValue, proj_id?: string, onprogress?: OnProgress): Promise; export declare function getBalance(id: string, currency: Currency): Promise; export declare function getBalances(id: string, currencys: Currency[]): Promise; export declare function getPreSkills(): Promise; export declare function getSkills(id: string): Promise; export declare function setPullRequest(id: string, pullRequestURL: string, onprogress?: OnProgress): Promise; //# sourceMappingURL=task.d.ts.map