@jackdbd/eleventy-plugin-text-to-speech
Version:
Eleventy plugin for the Google Cloud Text-to-Speech API
30 lines • 826 B
TypeScript
import type { Storage } from '@google-cloud/storage';
interface AssetConfig {
assetName: string;
buffer: string | Uint8Array;
}
interface WriteResult {
filepath?: string;
href: string;
message: string;
uri?: URL;
}
export interface Writer {
write: (config: AssetConfig) => Promise<WriteResult>;
}
interface SelfHostWriter {
hrefBase: string;
outputBase: string;
}
export declare const selfHostWriter: ({ hrefBase, outputBase }: SelfHostWriter) => {
write: (config: AssetConfig) => Promise<WriteResult>;
};
interface CloudStorageWriter {
bucketName: string;
storage: Storage;
}
export declare const cloudStorageWriter: ({ bucketName, storage }: CloudStorageWriter) => {
write: (config: AssetConfig) => Promise<WriteResult>;
};
export {};
//# sourceMappingURL=writers.d.ts.map