@uppy/instagram
Version:
Import photos and videos from Instagram, into Uppy.
29 lines • 1.25 kB
TypeScript
import { type CompanionPluginOptions, Provider } from '@uppy/companion-client';
import type { AsyncStore, Body, Meta, UnknownProviderPlugin, UnknownProviderPluginState, UppyFile } from '@uppy/core';
import { UIPlugin, type Uppy } from '@uppy/core';
import { ProviderViews } from '@uppy/provider-views';
import type { LocaleStrings } from '@uppy/utils';
import { type ComponentChild, h } from 'preact';
import locale from './locale.js';
declare module '@uppy/core' {
interface PluginTypeRegistry<M extends Meta, B extends Body> {
Instagram: Instagram<M, B>;
}
}
export type InstagramOptions = CompanionPluginOptions & {
locale?: LocaleStrings<typeof locale>;
};
export default class Instagram<M extends Meta, B extends Body> extends UIPlugin<InstagramOptions, M, B, UnknownProviderPluginState> implements UnknownProviderPlugin<M, B> {
static VERSION: string;
icon: () => h.JSX.Element;
provider: Provider<M, B>;
view: ProviderViews<M, B>;
storage: AsyncStore;
files: UppyFile<M, B>[];
rootFolderId: string | null;
constructor(uppy: Uppy<M, B>, opts: InstagramOptions);
install(): void;
uninstall(): void;
render(state: unknown): ComponentChild;
}
//# sourceMappingURL=Instagram.d.ts.map