import { OnProgress } from "./progress"; import { Page } from "./page"; import { Currency, CurrencyValue } from "./currency"; import { GistMetadata } from "./gist"; export interface SkillFeeRate { currency: Currency; rate: number; enabled: boolean; } export interface Skill { id: string; owner: string; erc721_name: string; erc721_url: string; gist_user: string; gist_id: string; block: string | number; tx: string; ctime: number; taskCount: number; grantCount: number; metadata?: GistMetadata; feeRates?: SkillFeeRate[]; } export interface SkillGrant { id: string; account: string; grant: boolean; mtime: number; } export interface SkillQuery { items: Skill[]; page: Page; } export interface SkillGrantQuery { items: SkillGrant[]; page: Page; } export declare function createSkill(options: { gistURL: string; }, onprogress?: OnProgress): Promise; export declare function getSkill(id: string): Promise; export declare function querySkills(options: { p?: number; n?: number; owner?: string; }): Promise; export declare function getSkillOwner(id: string): Promise; export declare function deposit(id: string, amount: CurrencyValue, onprogress?: OnProgress): Promise; export declare function withdraw(id: string, amount: CurrencyValue, onprogress?: OnProgress): Promise; export declare function isGrant(id: string, addr: string): Promise; export declare function grant(id: string, addr: string, onprogress?: OnProgress): Promise; export declare function unGrant(id: string, addr: 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 getFeeRate(skill: Skill, currencys: Currency[]): Promise; export declare function getFeeRates(skills: Skill[], currencys: Currency[]): Promise; export declare function setFeeRate(id: string, feeRate: SkillFeeRate, onprogress?: OnProgress): Promise; export declare function getFeeRateByCurrency(id: string, currency: Currency): Promise; export declare function querySkillGrants(options: { p?: number; n?: number; grant?: boolean; skill_id?: string; }): Promise; //# sourceMappingURL=skill.d.ts.map