// Generated by dts-bundle-generator v8.0.1 import { DataPoint, Indexable } from 'downsample'; export interface TimeSeriesData { x: number; y: number; } declare enum TimestampType { Frame = 0, Millisecond = 1 } declare enum InterpolationType { Step = 0, Linear = 1, CubicSpline = 2 } declare class TimeSeries { private static readonly MAX_DATA_POINTS; readonly data: TimeSeriesData[]; readonly timestampType: TimestampType; constructor(data: TimeSeriesData[], timestampType: TimestampType); static fromPoints(points: { x: number; y: number; }[], timestampType: TimestampType): TimeSeries; static loadSingleSeries(rawData: number[], intervalMs: number): TimeSeries; static loadFromCSV(file: File, timestampType: TimestampType): Promise; DEBUG_findNaNs(): TimeSeriesData[]; normalize(targetMin: number, targetMax: number): TimeSeries; compress(): void; limit(minValue: number, maxValue: number): TimeSeries; abs(): TimeSeries; movingAverage(windowSize: number): TimeSeries; filter(minValue: number, maxValue: number): TimeSeries; getValueAt(frame: number, framesPerSecond: number, interpolation: InterpolationType): number | undefined; } export type ParseqMetadata = { docName?: string; generated_by: string; version: string; generated_at: string; }; export type ParseqPersistableState = { meta: ParseqMetadata; options: ParseqOptions; displayedFields?: string[]; managedFields: string[]; timeSeries: [ { alias: string; ts: TimeSeries; } ] | [ ]; prompts: ParseqPrompts; keyframes: ParseqKeyframes; keyframeLock: "frames" | "seconds" | "beats"; reverseRender?: boolean; }; export type ParseqOptions = { input_fps?: number; bpm: number; output_fps: number; cc_window_width?: number; cc_window_slide_rate?: number; cc_use_input?: boolean; cadence?: number; }; export type SimpleParseqPrompts = { positive: string; negative: string; }; export type OverlapType = "none" | "linear" | "custom"; export type Overlap = { type: OverlapType; custom: string; inFrames: number; outFrames: number; }; export type AdvancedParseqPrompt = { enabled?: boolean; // defaults to true positive: string; negative: string; allFrames: boolean; from: number; to: number; name: string; overlap: Overlap; }; export type AdvancedParseqPrompts = AdvancedParseqPrompt[] | [ ]; export type AdvancedParseqPromptsV2 = { format: "v2"; enabled: boolean; promptList: AdvancedParseqPrompt[] | [ ]; commonPrompt: AdvancedParseqPrompt; commonPromptPos: "append" | "prepend"; }; export type ParseqPrompts = SimpleParseqPrompts | AdvancedParseqPrompts | AdvancedParseqPromptsV2; export type ParseqKeyframe = { frame: number; // TODO: make this stricter [key: string]: string | number; }; export type ParseqKeyframes = ParseqKeyframe[] | [ ]; export type ParseqRenderedFrames = [ ] | [ { frame: number; // TODO: make this stricter //@ts-ignore deforum_prompt?: string; [key: string]: number; } ]; // Min, max, isAnimated... for each field. export type ParseqRenderedFramesMeta = [ { // TODO: make this stricter [key: string]: { min: number; max: number; isFlat: boolean; }; } ] | [ ]; export type Point = { x: number; y: number; }; export type GraphableData = { [key: string]: Point[]; }; export type SparklineData = Indexable; export type RenderedData = ParseqPersistableState & { rendered_frames: ParseqRenderedFrames; rendered_frames_meta: ParseqRenderedFramesMeta; }; export type ParseqRenderable = Omit & { meta: ParseqMetadata & { version_id?: string; doc_id?: string; }; docId?: string; versionId?: string; timestamp?: number; changes?: string[]; }; export type ParseqRendered = RenderedData; export declare const parseqRenderDoc: (renderable: ParseqRenderable) => { renderedData: RenderedData; graphData: GraphableData; sparklineData: SparklineData; }; export {};