|
|
import * as tasks from "./tasks/index.js"; |
|
|
import type { Options } from "./types.js"; |
|
|
type Task = typeof tasks; |
|
|
export declare class InferenceClient { |
|
|
private readonly accessToken; |
|
|
private readonly defaultOptions; |
|
|
constructor(accessToken?: string, defaultOptions?: Options & { |
|
|
endpointUrl?: string; |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endpoint(endpointUrl: string): InferenceClient; |
|
|
} |
|
|
export interface InferenceClient extends Task { |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export declare class HfInference extends InferenceClient { |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export declare class InferenceClientEndpoint extends InferenceClient { |
|
|
} |
|
|
export {}; |
|
|
|