mirror of
https://github.com/storytold/placeholder-artcraft.git
synced 2026-10-20 07:44:59 +00:00
0daf83dba9
Need to remove secrets before entire repo can be made public.
24 lines
942 B
TypeScript
24 lines
942 B
TypeScript
import { CommandResult } from '../common/CommandStatus';
|
|
export declare enum FalBackgroundRemovalErrorType {
|
|
ServerError = "server_error",
|
|
NeedsFalApiKey = "needs_fal_api_key"
|
|
}
|
|
export interface FalBackgroundRemovalRequest {
|
|
image_media_token?: string;
|
|
base64_image?: string;
|
|
}
|
|
export interface FalBackgroundRemovalError extends CommandResult {
|
|
error_type: FalBackgroundRemovalErrorType;
|
|
error_message?: string;
|
|
}
|
|
export interface FalBackgroundRemovalPayload {
|
|
media_token: string;
|
|
cdn_url: string;
|
|
base64_bytes: string;
|
|
}
|
|
export interface FalBackgroundRemovalSuccess extends CommandResult {
|
|
payload: FalBackgroundRemovalPayload;
|
|
}
|
|
export type FalBackgroundRemovalResult = FalBackgroundRemovalSuccess | FalBackgroundRemovalError;
|
|
export declare const FalBackgroundRemoval: (request: FalBackgroundRemovalRequest) => Promise<FalBackgroundRemovalResult>;
|
|
//# sourceMappingURL=FalBackgroundRemoval.d.ts.map
|